We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea8aed commit ada01cfCopy full SHA for ada01cf
src/Xelmish.fsproj
@@ -35,4 +35,15 @@
35
<PrivateAssets>All</PrivateAssets>
36
</PackageReference>
37
</ItemGroup>
38
+
39
+ <Target Name="GetGitVersion" BeforeTargets="GenerateNuspec">
40
+ <Exec Command="git rev-parse HEAD" ConsoleToMSBuild="true" IgnoreExitCode="true">
41
+ <Output TaskParameter="ConsoleOutput" PropertyName="GitCommitHash" />
42
+ </Exec>
43
+ <PropertyGroup>
44
+ <RepositoryCommit Condition="'$(GitCommitHash)' != ''">$(GitCommitHash)</RepositoryCommit>
45
+ <RepositoryCommit Condition="'$(RepositoryCommit)' == ''">unknown</RepositoryCommit>
46
+ </PropertyGroup>
47
+ <Message Text="RepositoryCommit: $(RepositoryCommit)" Importance="high" />
48
+ </Target>
49
</Project>
0 commit comments