BizHawk/Version/Version.csproj

25 lines
1.3 KiB
XML
Raw Normal View History

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DebugType>pdbonly</DebugType>
<DefineConstants>TRACE</DefineConstants>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<ErrorReport>prompt</ErrorReport>
<Optimize>true</Optimize>
<OutputPath>./bin</OutputPath>
<PlatformTarget>AnyCPU</PlatformTarget>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<!-- 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 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">
<Exec Command='"$(ProjectDir)..\Build\BizHawk.Build.Tool.exe" GIT_REV --wc "$(ProjectDir).." --template "$(ProjectDir)svnrev_template" --out "$(ProjectDir)svnrev.cs"' Condition=" '$(OS)' == 'Windows_NT' " />
<Exec Command='"$(ProjectDir)../Build/standin.sh"' Condition=" '$(OS)' != 'Windows_NT' " />
</Target>
2018-02-16 00:10:43 +00:00
</Project>