Add into target

This commit is contained in:
Archangel
2025-08-06 21:10:56 +02:00
parent a0013fceca
commit ae828726dd
@@ -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="// &lt;auto-generated /&gt;&#xD;&#xA;// This file is automatically generated. Do not modify manually.&#xD;&#xA;// Any changes made to this file will be overwritten during the build process.&#xD;&#xA;&#xD;&#xA;using SPTarkov.Server.Core.Models.Enums%3B&#xD;&#xA;&#xD;&#xA;namespace SPTarkov.Server.Core.Utils%3B&#xD;&#xA;&#xD;&#xA;public static partial class ProgramStatics&#xD;&#xA;{&#xD;&#xA; private static string SptVersion { get%3B } = &quot;$(SptVersion)&quot;%3B&#xD;&#xA; private static string Commit { get%3B } = &quot;$(SptCommit)&quot;%3B&#xD;&#xA; private static double BuildTime { get%3B } = $(SptBuildTime)%3B&#xD;&#xA; private static EntryType BuildType { get%3B } = EntryType.$(SptBuildType)%3B&#xD;&#xA;}&#xD;&#xA;"
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>