From a333a82de71741f1f7456d8fae84786bbb5ee988 Mon Sep 17 00:00:00 2001 From: Bart Koelman Date: Fri, 21 Aug 2020 12:10:34 +0200 Subject: [PATCH 1/2] Fixed versioning on AppVeyor NuGet feed; added documentation --- .gitignore | 3 +++ Build.ps1 | 9 +++++---- README.md | 12 ++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c0f1b27f46..1b99ea253e 100644 --- a/.gitignore +++ b/.gitignore @@ -134,6 +134,9 @@ _ReSharper*/ *.[Rr]e[Ss]harper *.DotSettings.user +# JetBrains Rider +.idea/ + # TeamCity is a build add-in _TeamCity* diff --git a/Build.ps1 b/Build.ps1 index 15123ebe79..7387f9608a 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -47,9 +47,10 @@ If($env:APPVEYOR_REPO_TAG -eq $true) { CheckLastExitCode } } -Else { - Write-Output "VERSION-SUFFIX: alpha5-$revision" - Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision" - dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision --include-symbols +Else { + $packageVersionSuffix="alpha5-$revision" + Write-Output "VERSION-SUFFIX: $packageVersionSuffix" + Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$packageVersionSuffix" + dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$packageVersionSuffix CheckLastExitCode } \ No newline at end of file diff --git a/README.md b/README.md index 66c5d570c1..79233e1bda 100644 --- a/README.md +++ b/README.md @@ -121,3 +121,15 @@ A lot of changes were introduced in v4.0.0, the following chart should help you | ----------------- | ------------- | | 2.* | v3.* | | 3.* | v4.* | + +## Trying out the latest build + +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: + +* In Visual Studio: **Tools**, **NuGet Package Manager**, **Package Manager Settings**, **Package Sources** + * Click **+** + * Name: **AppVeyor JADNC**, Source: **https://ci.appveyor.com/nuget/jsonapidotnetcore** + * Click **Update**, **Ok** +* Open the NuGet package manager console (**Tools**, **NuGet Package Manager**, **Package Manager Console**) + * Select **AppVeyor JADNC** as package source + * Run command: `Install-Package JonApiDotNetCore -pre` From 8cd45aa27a25b406992c4d7e0a38ae395ec5072b Mon Sep 17 00:00:00 2001 From: Bart Koelman Date: Fri, 21 Aug 2020 12:20:12 +0200 Subject: [PATCH 2/2] Fixed: no not emit symbols package --- Build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build.ps1 b/Build.ps1 index 7387f9608a..db20a7e029 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -38,12 +38,12 @@ If($env:APPVEYOR_REPO_TAG -eq $true) { IF ([string]::IsNullOrWhitespace($revision)){ Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts" - dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --include-symbols + dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts CheckLastExitCode } Else { Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision" - dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision --include-symbols + dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision CheckLastExitCode } }