Add into target
This commit is contained in:
@@ -48,15 +48,15 @@
|
||||
/>
|
||||
</Target>
|
||||
<!-- Generates the ProgramStatics class with the build information -->
|
||||
<Target Name="GenerateProgramStatics" BeforeTargets="CoreCompile">
|
||||
<Target Name="GenerateProgramStatics" BeforeTargets="BeforeBuild;BeforeCompile;CoreCompile">
|
||||
<WriteLinesToFile
|
||||
File="Utils/ProgramStatics.Generated.cs"
|
||||
Lines="// <auto-generated />
// This file is automatically generated. Do not modify manually.
// Any changes made to this file will be overwritten during the build process.

using SPTarkov.Server.Core.Models.Enums%3B

namespace SPTarkov.Server.Core.Utils%3B

public static partial class ProgramStatics
{
 private static string SptVersion { get%3B } = "$(SptVersion)"%3B
 private static string Commit { get%3B } = "$(SptCommit)"%3B
 private static double BuildTime { get%3B } = $(SptBuildTime)%3B
 private static EntryType BuildType { get%3B } = EntryType.$(SptBuildType)%3B
}
"
|
||||
Overwrite="true"
|
||||
/>
|
||||
<!-- This is necessary to force MSBuild to look for this file before compilation-->
|
||||
<ItemGroup>
|
||||
<Compile Include="Utils/ProgramStatics.Generated.cs" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<!-- This is necessary to force MSBuild to look for this file before compilation-->
|
||||
<ItemGroup>
|
||||
<Compile Include="Utils/ProgramStatics.Generated.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user