Update to CoreCompile & Include file for compiliation
This commit is contained in:
@@ -48,11 +48,15 @@
|
||||
/>
|
||||
</Target>
|
||||
<!-- Generates the ProgramStatics class with the build information -->
|
||||
<Target Name="GenerateProgramStatics" BeforeTargets="BeforeBuild">
|
||||
<Target Name="GenerateProgramStatics" BeforeTargets="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"
|
||||
/>
|
||||
</Target>
|
||||
<!-- This is necessary to force MSBuild to look for this file after CoreCompile generated it-->
|
||||
<ItemGroup>
|
||||
<Compile Include="Utils/ProgramStatics.Generated.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
// <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;
|
||||
|
||||
namespace SPTarkov.Server.Core.Utils;
|
||||
|
||||
public static partial class ProgramStatics
|
||||
{
|
||||
private static string SptVersion { get; } = "4.0.0";
|
||||
private static string Commit { get; } = "a12b34";
|
||||
private static double BuildTime { get; } = 0000000000;
|
||||
private static EntryType BuildType { get; } = EntryType.LOCAL;
|
||||
}
|
||||
Reference in New Issue
Block a user