Return to manually listing <Compile/> in Version

Fixes bug from 5b4b85d2b
This commit is contained in:
YoshiRulz 2020-01-20 07:08:47 +10:00
parent b1d5a4d644
commit 24f69abb1b
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
<PropertyGroup>
<DebugType>pdbonly</DebugType>
<DefineConstants>TRACE</DefineConstants>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<ErrorReport>prompt</ErrorReport>
<Optimize>true</Optimize>
<OutputPath>./bin</OutputPath>
@ -9,10 +10,11 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="svnrev.cs" /><!-- Not checked-in, but needs to be added to the compile list which is generated before the pre-build event, so this will make MSBuild pretend it's there when cloning. -->
<!-- svnrev.cs / VersionInfo.cs are only used in other projects -->
<Compile Include="dummy.cs" /><!-- there was a bug in 1.x when no source files were included, including an empty file fixed it -->
</ItemGroup>
<Target Name="Build">
<!-- when is this called? it's never run and failed on Linux -->
<!-- when is this called? it has never run and failed on Linux -->
<Exec Command="&quot;$(MSBuildProjectDirectory)\subwcrev.bat&quot; $(MSBuildProjectDirectory)" Condition=" '$(OS)' == 'Windows_NT' " WorkingDirectory="$(MSBuildProjectDirectory)" />
</Target>
<Target Name="PreBuild" AfterTargets="PreBuildEvent">