File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 <ProjectReference Include =" ..\RandomizerCore\RandomizerCore.csproj" />
4545 </ItemGroup >
4646
47- <ItemGroup >
48- <Compile Include =" $(IntermediateOutputPath)GitInfo.cs"
49- Condition =" Exists('$(IntermediateOutputPath)GitInfo.cs') Or '$(DesignTimeBuild)' == 'true'" />
50- </ItemGroup >
51-
5247 <Target Name =" GenerateGitInfo" BeforeTargets =" BeforeBuild" >
5348 <MakeDir Directories =" $(IntermediateOutputPath)" />
5449 <Exec Command =" git rev-parse --short HEAD > $(IntermediateOutputPath)git-hash.txt" />
6863 <GitInfoText >// (auto-generated from .csproj)
6964 namespace Z2Randomizer;
7065 public static class GitInfo {
71- public const string Commit = " $(GitHash)" ;
72- public const string Branch = " $(GitBranch)" ;
73- public const bool IsDirty = $(IsDirtyValue);
66+ public static partial string Commit = " $(GitHash)" ;
67+ public static partial string Branch = " $(GitBranch)" ;
68+ public static partial bool IsDirty = $(IsDirtyValue);
7469 }
7570 </GitInfoText >
7671 </PropertyGroup >
7974 File =" $(IntermediateOutputPath)GitInfo.cs"
8075 Overwrite =" true"
8176 Lines =" $([System.Text.RegularExpressions.Regex]::Split('$(GitInfoText)', '\n'))" />
77+
78+ <ItemGroup >
79+ <Compile Include =" $(IntermediateOutputPath)GitInfo.cs" />
80+ </ItemGroup >
8281 </Target >
8382</Project >
Original file line number Diff line number Diff line change 1+ namespace Z2Randomizer ;
2+
3+ public static partial class GitInfo
4+ {
5+ public static partial string Commit { get ; }
6+ public static partial string Branch { get ; }
7+ public static partial bool IsDirty { get ; }
8+ }
You can’t perform that action at this time.
0 commit comments