Skip to content

Commit

Permalink
Merge pull request #37 from sharwell/versioning
Browse files Browse the repository at this point in the history
Update to Nerdbank.GitVersioning
  • Loading branch information
sharwell authored Sep 18, 2018
2 parents d467b1e + 27e3cce commit c67c66c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 8 deletions.
8 changes: 4 additions & 4 deletions DocumentationAnalyzers/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<Company>Tunnel Vision Laboratories, LLC</Company>
<Copyright>Copyright © Tunnel Vision Laboratories, LLC 2018</Copyright>
<NeutralLanguage>en-US</NeutralLanguage>

<Version>1.0.0.0</Version>
<FileVersion>1.0.0.0</FileVersion>
<InformationalVersion>1.0.0-dev</InformationalVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -41,6 +37,10 @@
<NoWarn>$(NoWarn),1573,1591,1712</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="2.2.13" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta009" PrivateAssets="all" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<NuspecFile>DocumentationAnalyzers.nuspec</NuspecFile>
<NuspecProperties>configuration=$(Configuration);version=$(InformationalVersion)</NuspecProperties>
</PropertyGroup>

<PropertyGroup>
<!-- This package intentionally uses SemVer 2. -->
<NoWarn>$(NoWarn),NU5105</NoWarn>
</PropertyGroup>

<Choose>
Expand Down Expand Up @@ -43,4 +47,9 @@
<ProjectReference Include="..\DocumentationAnalyzers\DocumentationAnalyzers.csproj" />
</ItemGroup>

<Target Name="SetNuspecProperties" AfterTargets="GetBuildVersion">
<PropertyGroup>
<NuspecProperties>configuration=$(Configuration);version=$(PackageVersion)</NuspecProperties>
</PropertyGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<package>
<metadata minClientVersion="2.7">
<id>DocumentationAnalyzers</id>
<id>DotNetAnalyzers.DocumentationAnalyzers</id>
<version>0.0.0</version>
<title>DocumentationAnalyzers</title>
<title>DotNetAnalyzers.DocumentationAnalyzers</title>
<authors>Sam Harwell et. al.</authors>
<owners>Sam Harwell</owners>
<licenseUrl>https://raw.githubusercontent.com/DotNetAnalyzers/DocumentationAnalyzers/$version$/LICENSE</licenseUrl>
Expand Down
18 changes: 18 additions & 0 deletions DocumentationAnalyzers/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0-beta.{height}",
"assemblyVersion": {
"precision": "revision"
},
"publicReleaseRefSpec": [
"^refs/heads/master$"
],
"nugetPackageVersion": {
"semVer": 2
},
"cloudBuild": {
"buildNumber": {
"enabled": true
}
}
}
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.{build}
version: '{build}'
image: Visual Studio 2017
init:
- git config --global core.autocrlf true
Expand Down

0 comments on commit c67c66c

Please sign in to comment.