Skip to content

Commit c67c66c

Browse files
authored
Merge pull request #37 from sharwell/versioning
Update to Nerdbank.GitVersioning
2 parents d467b1e + 27e3cce commit c67c66c

5 files changed

Lines changed: 35 additions & 8 deletions

File tree

DocumentationAnalyzers/Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
<Company>Tunnel Vision Laboratories, LLC</Company>
88
<Copyright>Copyright © Tunnel Vision Laboratories, LLC 2018</Copyright>
99
<NeutralLanguage>en-US</NeutralLanguage>
10-
11-
<Version>1.0.0.0</Version>
12-
<FileVersion>1.0.0.0</FileVersion>
13-
<InformationalVersion>1.0.0-dev</InformationalVersion>
1410
</PropertyGroup>
1511

1612
<PropertyGroup>
@@ -41,6 +37,10 @@
4137
<NoWarn>$(NoWarn),1573,1591,1712</NoWarn>
4238
</PropertyGroup>
4339

40+
<ItemGroup>
41+
<PackageReference Include="Nerdbank.GitVersioning" Version="2.2.13" PrivateAssets="all" />
42+
</ItemGroup>
43+
4444
<ItemGroup>
4545
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
4646
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta009" PrivateAssets="all" />

DocumentationAnalyzers/DocumentationAnalyzers.CodeFixes/DocumentationAnalyzers.CodeFixes.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
99
<IncludeSymbols>true</IncludeSymbols>
1010
<NuspecFile>DocumentationAnalyzers.nuspec</NuspecFile>
11-
<NuspecProperties>configuration=$(Configuration);version=$(InformationalVersion)</NuspecProperties>
11+
</PropertyGroup>
12+
13+
<PropertyGroup>
14+
<!-- This package intentionally uses SemVer 2. -->
15+
<NoWarn>$(NoWarn),NU5105</NoWarn>
1216
</PropertyGroup>
1317

1418
<Choose>
@@ -43,4 +47,9 @@
4347
<ProjectReference Include="..\DocumentationAnalyzers\DocumentationAnalyzers.csproj" />
4448
</ItemGroup>
4549

50+
<Target Name="SetNuspecProperties" AfterTargets="GetBuildVersion">
51+
<PropertyGroup>
52+
<NuspecProperties>configuration=$(Configuration);version=$(PackageVersion)</NuspecProperties>
53+
</PropertyGroup>
54+
</Target>
4655
</Project>

DocumentationAnalyzers/DocumentationAnalyzers.CodeFixes/DocumentationAnalyzers.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0"?>
22
<package>
33
<metadata minClientVersion="2.7">
4-
<id>DocumentationAnalyzers</id>
4+
<id>DotNetAnalyzers.DocumentationAnalyzers</id>
55
<version>0.0.0</version>
6-
<title>DocumentationAnalyzers</title>
6+
<title>DotNetAnalyzers.DocumentationAnalyzers</title>
77
<authors>Sam Harwell et. al.</authors>
88
<owners>Sam Harwell</owners>
99
<licenseUrl>https://raw.githubusercontent.com/DotNetAnalyzers/DocumentationAnalyzers/$version$/LICENSE</licenseUrl>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "1.0-beta.{height}",
4+
"assemblyVersion": {
5+
"precision": "revision"
6+
},
7+
"publicReleaseRefSpec": [
8+
"^refs/heads/master$"
9+
],
10+
"nugetPackageVersion": {
11+
"semVer": 2
12+
},
13+
"cloudBuild": {
14+
"buildNumber": {
15+
"enabled": true
16+
}
17+
}
18+
}

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.0.{build}
1+
version: '{build}'
22
image: Visual Studio 2017
33
init:
44
- git config --global core.autocrlf true

0 commit comments

Comments
 (0)