Skip to content
Permalink
Browse files

Improve GenerateUniqueIdentifierCs

  • Loading branch information
bording committed Aug 25, 2018
1 parent f8e2d42 commit 6969225c4749255fd04363ac6e4ffe7fdfe33ad7
Showing with 4 additions and 2 deletions.
  1. +4 −2 Targets/CodeGenerator.targets
@@ -12,15 +12,17 @@
</Target>


<Target Name="GenerateUniqueIdentifierCs" Inputs="$(MSBuildThisFileFullPath);$(MSBuildAllProjects);@(Compile)" Outputs="$(UniqueIdentifierPath)" BeforeTargets="CoreCompile" DependsOnTargets="DefineProperties">
<Target Name="GenerateUniqueIdentifierCs" Inputs="$(VersionSourceFile)" Outputs="$(UniqueIdentifierPath)" BeforeTargets="CoreCompile" AfterTargets="GenerateAssemblyVersionInfo" DependsOnTargets="DefineProperties">

<PropertyGroup>
<UniqueIdentifier>$([System.Guid]::NewGuid())</UniqueIdentifier>
<UniqueIdentifier Condition="'$(GitCommitId)' != ''">$(GitCommitId)</UniqueIdentifier>
<UniqueIdSourceLines>
namespace LibGit2Sharp.Core
{
internal static class UniqueId
{
public const string UniqueIdentifier = "$([System.Guid]::NewGuid())"%3b
public const string UniqueIdentifier = "$(UniqueIdentifier)"%3b
}
}
</UniqueIdSourceLines>

0 comments on commit 6969225

Please sign in to comment.
You can’t perform that action at this time.