Skip to content

Commit 86de280

Browse files
author
Bart Koelman
authored
Merge pull request #802 from bart-degreed/fix-nuget-cibuild
Fixed versioning on AppVeyor NuGet feed; added documentation
2 parents 72ce454 + 8cd45aa commit 86de280

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ _ReSharper*/
134134
*.[Rr]e[Ss]harper
135135
*.DotSettings.user
136136

137+
# JetBrains Rider
138+
.idea/
139+
137140
# TeamCity is a build add-in
138141
_TeamCity*
139142

Build.ps1

+7-6
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,19 @@ If($env:APPVEYOR_REPO_TAG -eq $true) {
3838

3939
IF ([string]::IsNullOrWhitespace($revision)){
4040
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts"
41-
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --include-symbols
41+
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts
4242
CheckLastExitCode
4343
}
4444
Else {
4545
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision"
46-
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision --include-symbols
46+
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision
4747
CheckLastExitCode
4848
}
4949
}
50-
Else {
51-
Write-Output "VERSION-SUFFIX: alpha5-$revision"
52-
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision"
53-
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision --include-symbols
50+
Else {
51+
$packageVersionSuffix="alpha5-$revision"
52+
Write-Output "VERSION-SUFFIX: $packageVersionSuffix"
53+
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$packageVersionSuffix"
54+
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$packageVersionSuffix
5455
CheckLastExitCode
5556
}

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,15 @@ A lot of changes were introduced in v4.0.0, the following chart should help you
121121
| ----------------- | ------------- |
122122
| 2.* | v3.* |
123123
| 3.* | v4.* |
124+
125+
## Trying out the latest build
126+
127+
After each commit, a new prerelease NuGet package is automatically published to AppVeyor at https://ci.appveyor.com/nuget/jsonapidotnetcore. To try it out, follow the next steps:
128+
129+
* In Visual Studio: **Tools**, **NuGet Package Manager**, **Package Manager Settings**, **Package Sources**
130+
* Click **+**
131+
* Name: **AppVeyor JADNC**, Source: **https://ci.appveyor.com/nuget/jsonapidotnetcore**
132+
* Click **Update**, **Ok**
133+
* Open the NuGet package manager console (**Tools**, **NuGet Package Manager**, **Package Manager Console**)
134+
* Select **AppVeyor JADNC** as package source
135+
* Run command: `Install-Package JonApiDotNetCore -pre`

0 commit comments

Comments
 (0)