Skip to content

Commit 50bfe9b

Browse files
committed
Update to Nerdbank.GitVersioning
1 parent 58d2cf5 commit 50bfe9b

3 files changed

Lines changed: 21 additions & 5 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>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "1.0-beta.{height}",
4+
"nugetPackageVersion": {
5+
"semVer": 2
6+
}
7+
}

0 commit comments

Comments
 (0)