Skip to content

Commit d6a96b4

Browse files
committed
[REVIEW] Migrate to VS 2022 (17.*)
1 parent 407a800 commit d6a96b4

File tree

7 files changed

+26
-17
lines changed

7 files changed

+26
-17
lines changed

Build.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ echo "build: Build started"
33
Push-Location $PSScriptRoot
44

55
if(Test-Path .\artifacts) {
6-
echo "build: Cleaning .\artifacts"
7-
Remove-Item .\artifacts -Force -Recurse
6+
echo "build: Cleaning .\artifacts"
7+
Remove-Item .\artifacts -Force -Recurse
88
}
99

1010
& dotnet restore --no-cache
@@ -16,24 +16,24 @@ $commitHash = $(git rev-parse --short HEAD)
1616
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
1717

1818
echo "build: Package version suffix is $suffix"
19-
echo "build: Build version suffix is $buildSuffix"
19+
echo "build: Build version suffix is $buildSuffix"
2020

2121
foreach ($src in ls src/*) {
2222
Push-Location $src
2323

24-
echo "build: Packaging project in $src"
24+
echo "build: Packaging project in $src"
2525

2626
& dotnet build -c Release --version-suffix=$buildSuffix
2727
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
28-
if($LASTEXITCODE -ne 0) { exit 1 }
28+
if($LASTEXITCODE -ne 0) { exit 1 }
2929

3030
Pop-Location
3131
}
3232

3333
foreach ($test in ls test/*.Tests) {
3434
Push-Location $test
3535

36-
echo "build: Testing project in $test"
36+
echo "build: Testing project in $test"
3737

3838
& dotnet test -c Release
3939
if($LASTEXITCODE -ne 0) { exit 3 }

LICENSE

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -178,15 +179,15 @@
178179
APPENDIX: How to apply the Apache License to your work.
179180

180181
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "{}"
182+
boilerplate notice, with the fields enclosed by brackets "[]"
182183
replaced with your own identifying information. (Don't include
183184
the brackets!) The text should be enclosed in the appropriate
184185
comment syntax for the file format. We also recommend that a
185186
file or class name and description of purpose be included on the
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright {yyyy} {name of copyright owner}
190+
Copyright [yyyy] [name of copyright owner]
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: '{build}'
22
skip_tags: true
3-
image: Visual Studio 2017
3+
image: Visual Studio 2022
44
configuration: Release
55
test: off
66
build_script:

assets/serilog-extension-nuget.png

21.9 KB
Loading

serilog-extensions-logging-file.sln

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26430.14
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.32014.148
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0069BFD6-B0EE-4204-A85F-F75E31A77B3C}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{B0D573D8-1AE2-4C5C-817A-95815067452E}"
99
ProjectSection(SolutionItems) = preProject
10+
.gitattributes = .gitattributes
11+
.gitignore = .gitignore
1012
appveyor.yml = appveyor.yml
1113
Build.ps1 = Build.ps1
1214
LICENSE = LICENSE
@@ -50,4 +52,7 @@ Global
5052
{E640A22A-DF3C-40A2-AC72-DEB2F9B16241} = {0069BFD6-B0EE-4204-A85F-F75E31A77B3C}
5153
{64A3F2C5-D71E-44A6-8DC7-99474765B32E} = {D54DE844-AC36-4872-928F-5F573D41ACAE}
5254
EndGlobalSection
55+
GlobalSection(ExtensibilityGlobals) = postSolution
56+
SolutionGuid = {4A37A10E-F9A2-4578-9B58-EB7C07B64E66}
57+
EndGlobalSection
5358
EndGlobal

src/Serilog.Extensions.Logging.File/Serilog.Extensions.Logging.File.csproj

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
1414
<PackageId>Serilog.Extensions.Logging.File</PackageId>
1515
<PackageTags>asp.net;core;logging;file</PackageTags>
16-
<PackageIconUrl>http://serilog.net/images/serilog-extension-nuget.png</PackageIconUrl>
16+
<PackageIcon>serilog-extension-nuget.png</PackageIcon>
17+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1718
<PackageProjectUrl>https://github.com/serilog/serilog-extensions-logging-file</PackageProjectUrl>
18-
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
1919
<RepositoryUrl>https://github.com/serilog/serilog-extensions-logging-file</RepositoryUrl>
2020
<RepositoryType>git</RepositoryType>
2121
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
@@ -24,6 +24,11 @@
2424
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
2525
</PropertyGroup>
2626

27+
<ItemGroup>
28+
<None Include="../../assets/serilog-extension-nuget.png" Pack="true" PackagePath="" />
29+
<None Include="../../LICENSE" Pack="true" PackagePath="" />
30+
</ItemGroup>
31+
2732
<ItemGroup>
2833
<PackageReference Include="Serilog" Version="2.10.0" />
2934
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />

test/Serilog.Extensions.Logging.File.Tests/Serilog.Extensions.Logging.File.Tests.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net48;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
<AssemblyName>Serilog.Extensions.Logging.File.Tests</AssemblyName>
66
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
77
<SignAssembly>true</SignAssembly>
88
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
99
<PackageId>Serilog.Extensions.Logging.File.Tests</PackageId>
1010
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
11-
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);dnxcore50;portable-net45+win8</PackageTargetFallback>
12-
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">1.0.4</RuntimeFrameworkVersion>
1311
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1412
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1513
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
@@ -20,7 +18,7 @@
2018
</ItemGroup>
2119

2220
<ItemGroup>
23-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.2" />
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
2422
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
2523
<PackageReference Include="xunit" Version="2.4.1" />
2624
</ItemGroup>

0 commit comments

Comments
 (0)