Return to manually listing <Compile/> in Version
Fixes bug from 5b4b85d2b
This commit is contained in:
parent
b1d5a4d644
commit
24f69abb1b
|
@ -2,6 +2,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>./bin</OutputPath>
|
<OutputPath>./bin</OutputPath>
|
||||||
|
@ -9,10 +10,11 @@
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<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>
|
</ItemGroup>
|
||||||
<Target Name="Build">
|
<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=""$(MSBuildProjectDirectory)\subwcrev.bat" $(MSBuildProjectDirectory)" Condition=" '$(OS)' == 'Windows_NT' " WorkingDirectory="$(MSBuildProjectDirectory)" />
|
<Exec Command=""$(MSBuildProjectDirectory)\subwcrev.bat" $(MSBuildProjectDirectory)" Condition=" '$(OS)' == 'Windows_NT' " WorkingDirectory="$(MSBuildProjectDirectory)" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="PreBuild" AfterTargets="PreBuildEvent">
|
<Target Name="PreBuild" AfterTargets="PreBuildEvent">
|
||||||
|
|
Loading…
Reference in New Issue