-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oren Novotny
committed
Dec 17, 2018
1 parent
71096ba
commit 0a85dfc
Showing
4 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project> | ||
|
||
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes"> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' "> | ||
<_Parameter1>CommitHash</_Parameter1> | ||
<_Parameter2>$(SourceRevisionId)</_Parameter2> | ||
</AssemblyAttribute> | ||
|
||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(PublicRelease)' == 'true' "> | ||
<_Parameter1>CloudBuildNumber</_Parameter1> | ||
<_Parameter2>$(BuildVersionSimple)</_Parameter2> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(PublicRelease)' == 'false' "> | ||
<_Parameter1>CloudBuildNumber</_Parameter1> | ||
<_Parameter2>$(BuildVersionSimple)$(SemVerBuildSuffix)</_Parameter2> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
|
||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "1.0", | ||
"publicReleaseRefSpec": [ | ||
"^refs/heads/master$", // we release out of master | ||
"^refs/heads/rel/v\\d+\\.\\d+" // we also release branches starting with vN.N | ||
], | ||
"nugetPackageVersion":{ | ||
"semVer": 2 | ||
} | ||
} |