Skip to content

Commit 8765d24

Browse files
committed
Create snupkg packages
1 parent 1d29a4a commit 8765d24

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

NLog.Extensions.Logging.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C21FD102-21B1-46DB-AD62-86692558AD01}"
66
EndProject
77
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BD106966-02BE-4137-B9DC-4ECE56B4C204}"
8+
ProjectSection(SolutionItems) = preProject
9+
appveyor.yml = appveyor.yml
10+
build.ps1 = build.ps1
11+
README.md = README.md
12+
EndProjectSection
813
EndProject
914
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NLog.Extensions.Logging", "src\NLog.Extensions.Logging\NLog.Extensions.Logging.csproj", "{6A236D76-C9D9-4B1D-8DDE-F6978D110288}"
1015
EndProject

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 1.0.{build}
22
image: Visual Studio 2017
33
configuration: Release
4+
skip_tags: true
45

56
environment:
67
github_auth_token:
@@ -19,6 +20,7 @@ nuget:
1920

2021
artifacts:
2122
- path: 'artifacts\*.nupkg'
23+
- path: 'artifacts\*.snupkg'
2224

2325
test_script:
2426
- nuget.exe install OpenCover -ExcludeVersion -DependencyVersion Ignore

build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# creates NuGet package at \artifacts
33
dotnet --version
44

5-
$versionPrefix = "1.3.0"
5+
$versionPrefix = "1.4.0"
66
$versionSuffix = ""
77
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
88
$versionProduct = $versionPrefix;
@@ -17,11 +17,11 @@ dotnet restore .\src\NLog.Extensions.Hosting\
1717
if (-Not $LastExitCode -eq 0)
1818
{ exit $LastExitCode }
1919

20-
msbuild /t:Pack .\src\NLog.Extensions.Logging\ /p:targetFrameworks='"net451;net461;netstandard1.3;netstandard1.5;netstandard2.0"' /p:VersionPrefix=$versionPrefix /p:VersionSuffix=$versionSuffix /p:FileVersion=$versionFile /p:ProductVersion=$versionProduct /p:Configuration=Release /p:IncludeSymbols=true /p:PackageOutputPath=..\..\artifacts /verbosity:minimal
20+
msbuild /t:Pack .\src\NLog.Extensions.Logging\ /p:targetFrameworks='"net451;net461;netstandard1.3;netstandard1.5;netstandard2.0"' /p:VersionPrefix=$versionPrefix /p:VersionSuffix=$versionSuffix /p:FileVersion=$versionFile /p:ProductVersion=$versionProduct /p:Configuration=Release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts /verbosity:minimal
2121
if (-Not $LastExitCode -eq 0)
2222
{ exit $LastExitCode }
2323

24-
msbuild /t:Pack .\src\NLog.Extensions.Hosting\ /p:targetFrameworks='"netstandard2.0"' /p:VersionPrefix=$versionPrefix /p:VersionSuffix=$versionSuffix /p:FileVersion=$versionFile /p:ProductVersion=$versionProduct /p:Configuration=Release /p:IncludeSymbols=true /p:PackageOutputPath=..\..\artifacts /verbosity:minimal
24+
msbuild /t:Pack .\src\NLog.Extensions.Hosting\ /p:targetFrameworks='"netstandard2.0"' /p:VersionPrefix=$versionPrefix /p:VersionSuffix=$versionSuffix /p:FileVersion=$versionFile /p:ProductVersion=$versionProduct /p:Configuration=Release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts /verbosity:minimal
2525
if (-Not $LastExitCode -eq 0)
2626
{ exit $LastExitCode }
2727

0 commit comments

Comments
 (0)