-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
21 lines (20 loc) · 1002 Bytes
/
Directory.Build.props
File metadata and controls
21 lines (20 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project>
<PropertyGroup>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<NeutralLanguage>en</NeutralLanguage>
<SourceRevisionId>$([System.DateTime]::UtcNow.ToString("yyMMddHHmmss"))</SourceRevisionId>
</PropertyGroup>
<!-- Auto-detect PKHeX version from the referenced DLL -->
<Target Name="GetPKHeXVersion" BeforeTargets="GetAssemblyVersion;GenerateNuspec;Build">
<GetAssemblyIdentity AssemblyFiles="$(MSBuildThisFileDirectory)BDSPSeedFinderPlugin\Deps\PKHeX.Core.dll">
<Output TaskParameter="Assemblies" ItemName="PKHeXAssembly"/>
</GetAssemblyIdentity>
<PropertyGroup>
<Version>%(PKHeXAssembly.Version)</Version>
<AssemblyVersion>%(PKHeXAssembly.Version)</AssemblyVersion>
<FileVersion>%(PKHeXAssembly.Version)</FileVersion>
</PropertyGroup>
<Message Text="Building plugin for PKHeX version: $(Version)" Importance="high" />
</Target>
</Project>