Skip to content

Commit bb81429

Browse files
authored
Bump to Visual Studio 2022 on AppVeyor (#558)
1 parent 5b14701 commit bb81429

5 files changed

Lines changed: 3 additions & 14 deletions

File tree

appveyor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 5.0.0-{build} # Only change for mayor versions (e.g. 6.0)
2-
image: Visual Studio 2019
2+
image: Visual Studio 2022
33
configuration: Release
44
skip_tags: true
55

@@ -21,8 +21,7 @@ artifacts:
2121

2222
test_script:
2323
- nuget.exe install OpenCover -ExcludeVersion -DependencyVersion Ignore
24-
- OpenCover\tools\OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp1.1 -c debug NLog.Extensions.Logging.Tests" -filter:"+[NLog.Extensions.Logging]* +[NLog.Extensions.Hosting]* -[NLog.Extensions.Logging.Tests]* -[NLog.Extensions.Hosting.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
25-
- OpenCover\tools\OpenCover.Console.exe -register:user -mergeoutput -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp2.1 -c debug NLog.Extensions.Logging.Tests" -filter:"+[NLog.Extensions.Logging]* -[NLog.Extensions.Logging.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
24+
- OpenCover\tools\OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp2.1 -c debug NLog.Extensions.Logging.Tests" -filter:"+[NLog.Extensions.Logging]* +[NLog.Extensions.Hosting]* -[NLog.Extensions.Logging.Tests]* -[NLog.Extensions.Hosting.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
2625
- OpenCover\tools\OpenCover.Console.exe -register:user -mergeoutput -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp3.1 -c debug NLog.Extensions.Logging.Tests" -filter:"+[NLog.Extensions.Logging]* -[NLog.Extensions.Logging.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
2726
- OpenCover\tools\OpenCover.Console.exe -register:user -mergeoutput -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f net5.0 -c debug NLog.Extensions.Logging.Tests" -filter:"+[NLog.Extensions.Logging]* -[NLog.Extensions.Logging.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"
2827
- OpenCover\tools\OpenCover.Console.exe -register:user -mergeoutput -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test -f netcoreapp2.1 -c debug NLog.Extensions.Hosting.Tests" -filter:"+[NLog.Extensions.Logging]* +[NLog.Extensions.Hosting]* -[NLog.Extensions.Logging.Tests]* -[NLog.Extensions.Hosting.Tests]*" -output:"coverage.xml" -oldstyle -targetdir:"test"

test/NLog.Extensions.Logging.Tests/ConfigSettingLayoutRendererTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public void ConfigSettingFallbackDefaultLookup()
1515
Assert.Equal("MyTableName", result);
1616
}
1717

18-
#if !NETCORE1_0
1918
[Fact]
2019
public void ConfigSettingGlobalConfigLookup()
2120
{
@@ -26,6 +25,5 @@ public void ConfigSettingGlobalConfigLookup()
2625
var result = layoutRenderer.Render(LogEventInfo.CreateNullEvent());
2726
Assert.Equal("Test", result);
2827
}
29-
#endif
3028
}
3129
}

test/NLog.Extensions.Logging.Tests/Extensions/ConfigureExtensionsTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public void AddNLog_LoggerFactory_IncludeActivityIdsWithBeginScope()
7777
}
7878
#endif
7979

80-
#if !NETCORE1_0
8180
[Fact]
8281
public void AddNLog_LoggingBuilder_LogInfo_ShouldLogToNLog()
8382
{
@@ -166,7 +165,6 @@ internal class LoggingBuilderStub : ILoggingBuilder
166165
{
167166
public IServiceCollection Services { get; set; } = new ServiceCollection();
168167
}
169-
#endif
170168

171169
private static void AssertSingleMessage(MemoryTarget memoryTarget, string expectedMessage)
172170
{

test/NLog.Extensions.Logging.Tests/NLog.Extensions.Logging.Tests.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
55

6-
<TargetFrameworks>netcoreapp1.1;netcoreapp2.1;netcoreapp3.1;net461;net5.0</TargetFrameworks>
6+
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net461;net5.0</TargetFrameworks>
77
<OutputType>Library</OutputType>
88
<IsPackable>false</IsPackable>
99
<DebugType>Full</DebugType>
@@ -16,10 +16,6 @@
1616
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
1717
</PropertyGroup>
1818

19-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
20-
<DefineConstants>$(DefineConstants);NETCORE1_0</DefineConstants>
21-
</PropertyGroup>
22-
2319
<ItemGroup>
2420
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
2521
<PackageReference Include="System.ValueTuple" Version="4.5.0" />

test/NLog.Extensions.Logging.Tests/NLogLoggingConfigurationTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class NLogLoggingConfigurationTests
1313
const string DefaultSectionName = "NLog";
1414
const string CustomSectionName = "MyCustomSection";
1515

16-
#if !NETCORE1_0
1716
[Fact]
1817
public void LoadSimpleConfig()
1918
{
@@ -303,6 +302,5 @@ private static Dictionary<string, string> CreateMemoryConfigConsoleTargetAndRule
303302

304303
return memoryConfig;
305304
}
306-
#endif
307305
}
308306
}

0 commit comments

Comments
 (0)