Skip to content

Commit fa964b4

Browse files
authored
Version 4 (#37)
1 parent 10105e1 commit fa964b4

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

NLog.Owin.Logging.Tests/NLog.Owin.Logging.Tests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>net452</TargetFramework>
4-
<AssemblyTitle>Pysco68.Owin.Logging.NLogAdapter.Tests</AssemblyTitle>
54
<Product>NLog.Owin.Logging.Tests</Product>
65
<Copyright>Copyright © 2016-2019</Copyright>
76
<IsPackable>false</IsPackable>
@@ -10,7 +9,7 @@
109
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.2.2" />
1110
<PackageReference Include="Microsoft.Owin.Testing" Version="4.2.2" />
1211
<PackageReference Include="NUnit" Version="3.13.3" />
13-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
12+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
1413
</ItemGroup>
1514
<ItemGroup>
1615
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />

NLog.Owin.Logging/NLog.Owin.Logging.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Description>NLog logging adapter for OWIN</Description>
77
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
88
<Copyright>Copyright © 2016-$(CurrentYear) Yannic Staudt &amp; NLog Project - https://nlog-project.org/ </Copyright>
9-
<Version>1.0</Version>
9+
<Version>4.0</Version>
1010
<TargetFramework>net45</TargetFramework>
1111
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1212
<Authors>NLog, Yannic "Pysco68" Staudt, Julian Verdurmen</Authors>
@@ -21,13 +21,14 @@
2121
<IncludeSymbols>true</IncludeSymbols>
2222
<SignAssembly>true</SignAssembly>
2323
<AssemblyOriginatorKeyFile>NLog.snk</AssemblyOriginatorKeyFile>
24-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
24+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
2525
<IsPackable>true</IsPackable>
2626
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2727
<PackageReleaseNotes>
28-
- Updated to NLog v5
28+
- Updated to NLog v4.7.15
2929
- Updated to Microsoft.Owin v4.2.2
3030
- Enabled Deterministic build + SourceLink
31+
- Only emit EventId-property when non-zero
3132
</PackageReleaseNotes>
3233
</PropertyGroup>
3334
<ItemGroup>
@@ -36,7 +37,7 @@
3637
<PrivateAssets>all</PrivateAssets>
3738
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3839
</PackageReference>
39-
<PackageReference Include="NLog" Version="5.0.2" />
40+
<PackageReference Include="NLog" Version="4.7.15" />
4041
</ItemGroup>
4142
<ItemGroup>
4243
<None Include="NLog.snk" />

appveyor.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
image: Visual Studio 2022
2-
version: 1.0.0.{build}
2+
version: 4.0.0.{build}
33
clone_folder: c:\projects\nlog
44
configuration: Release
55
platform: Any CPU
66
dotnet_csproj:
77
patch: true
88
file: '**\*.csproj'
9-
assembly_version: '1.0.0' #only change on major releases
9+
assembly_version: '4.0.0' #only change on major releases
1010
file_version: '{version}'
11-
package_version: '1.1'
12-
informational_version: '1.1'
13-
version: '1.1'
11+
package_version: '4.0'
12+
informational_version: '4.0'
13+
version: '4.0'
1414
skip_tags: true
15+
nuget:
16+
disable_publish_on_pr: true
1517
build_script:
16-
- ps: msbuild /t:restore,build /p:Configuration=Release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /verbosity:minimal /p:ContinuousIntegrationBuild=true
18+
- ps: dotnet restore
19+
- ps: msbuild /t:build,pack /p:Configuration=Release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /verbosity:minimal /p:ContinuousIntegrationBuild=true
1720
test_script:
1821
- nuget.exe install OpenCover -ExcludeVersion
1922
- OpenCover\tools\OpenCover.Console.exe -register:user -target:"nunit3-console.exe" -targetargs:"c:\projects\nlog\NLog.Owin.Logging.Tests\bin\Release\net452\NLog.Owin.Logging.Tests.dll" -returntargetcode -filter:"+[NLog.Owin.Logging]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:coverage.xml
@@ -24,3 +27,9 @@ test_script:
2427
artifacts:
2528
- path: '**\NLog.*.nupkg'
2629
- path: '**\NLog.*.snupkg'
30+
deploy:
31+
- provider: NuGet
32+
api_key:
33+
secure: e+0IpLU3V1eXUsWCRjKGuyyeuLQYfFpv6BAoIihFQryuYZsOWVvxUBvQOC0dOL2n
34+
on:
35+
branch: master

0 commit comments

Comments
 (0)