Skip to content

Commit

Permalink
Use Nerdbank.GitVersioning (#370)
Browse files Browse the repository at this point in the history
* Use Nerdbank.GitVersioning

* Include snupkg
  • Loading branch information
scott-xu committed Jan 15, 2022
1 parent e6e5d3e commit d591c7e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Ninject.sln
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.16
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3E299B94-5F07-49DE-8226-55EDC56F13E3}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
CHANGELOG.md = CHANGELOG.md
README.md = README.md
version.json = version.json
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ninject", "src\Ninject\Ninject.csproj", "{25A6D723-B248-4168-BB2B-50FBD29209A5}"
Expand Down
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
configuration: Release

image: Visual Studio 2017
image: Visual Studio 2022

init:
- ps: >-
Expand Down Expand Up @@ -36,6 +36,7 @@ test_script:

artifacts:
- path: 'src\**\*.nupkg'
- path: 'src\**\*.snupkg'

deploy:
provider: NuGet
Expand Down
7 changes: 4 additions & 3 deletions src/Ninject/Ninject.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<Version>0.0.0</Version>
<Authors>Ninject Project Contributors</Authors>
<Company>Ninject Project Contributors</Company>
<Product>Ninject: Lightweight dependency injection for .NET</Product>
Expand All @@ -11,8 +10,6 @@
<AssemblyOriginatorKeyFile>..\Ninject.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>Ninject</PackageId>
<PackageVersion>0.0.0</PackageVersion>
<PackageTags>IoC;DI;Ninject</PackageTags>
<PackageProjectUrl>http://www.ninject.org/</PackageProjectUrl>
<PackageReleaseNotes>https://github.com/ninject/Ninject/blob/master/CHANGELOG.md</PackageReleaseNotes>
Expand Down Expand Up @@ -43,6 +40,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.0.50">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
16 changes: 16 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "5.0.0-ci.{height}",
"cloudBuild": {
"buildNumber": {
"enabled": true
}
},
"nugetPackageVersion": {
"semVer": 2
},
"publicReleaseRefSpec": [
"^refs/heads/master$", // we release out of master
"^refs/tags/v\\d+\\.\\d+" // we also release tags starting with vN.N
]
}

0 comments on commit d591c7e

Please sign in to comment.