Skip to content

Commit f5a6297

Browse files
authored
Update SDK to 2024.1 (#105)
* Update SdkVersion in Directory.Build.props The SdkVersion in Directory.Build.props has been updated from version 2023.3.2 to 2024.1.0-eap01. This update is in line with the latest SDK changes and aims to maintain compatibility. * Update SDK version and target framework The SDK version has been updated from the Early Access Preview version to the stable version. The .NET target framework version in the _build.csproj file has been updated to 8.0. Also, the versions of the Nuke.Common, dotnet-sonarscanner, NuGet.CommandLine, and NUnit.ConsoleRunner packages have been updated. Lastly, the '.gitignore' file was updated to ignore GitHub Copilot chat sessions. * Update SdkVersion to 2024.1.4 The SdkVersion in the `Directory.Build.props` file has been updated from 2024.1.0 to 2024.1.4. This version bump ensures the project uses the latest features and bug fixes from the SDK. * Update MicrosoftLoggingPackage version and add TestNet60 attribute The version of the MicrosoftLoggingPackage constant in the NugetPackages.cs file was updated from 1.0.0 to 6.0.0. Additionally, the TestNet60 attribute was added to the ContextualLoggerConstructorAnalyzerTests class in the ContextualLoggerConstructorAnalyzerTests.cs file.
1 parent c28b47b commit f5a6297

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
44
<PropertyGroup>
5-
<SdkVersion>2023.3.2</SdkVersion>
5+
<SdkVersion>2024.1.4</SdkVersion>
66
</PropertyGroup>
77
<!-- https://jetbrains.slack.com/archives/CBZ36NH7C/p1628090127002200 -->
88
<PropertyGroup>

build/_build.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace></RootNamespace>
77
<NoWarn>CS0649;CS0169</NoWarn>
88
<NukeRootDirectory>..</NukeRootDirectory>
@@ -15,9 +15,9 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageDownload Include="dotnet-sonarscanner" Version="[5.9.1]" />
19-
<PackageDownload Include="NuGet.CommandLine" Version="[6.3.1]" />
20-
<PackageDownload Include="NUnit.ConsoleRunner" Version="[3.16.0]" />
18+
<PackageDownload Include="dotnet-sonarscanner" Version="[6.2.0]" />
19+
<PackageDownload Include="NuGet.CommandLine" Version="[6.9.1]" />
20+
<PackageDownload Include="NUnit.ConsoleRunner" Version="[3.17.0]" />
2121
<PackageDownload Include="dotnet-cleanup" Version="[0.6.1]" />
2222
</ItemGroup>
2323

src/.idea/.idea.ReSharper.Structured.Logging/.idea/.gitignore

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/src/Analyzer/ContextualLoggerConstructorAnalyzerTests.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
using NUnit.Framework;
1+
using JetBrains.ReSharper.TestFramework;
2+
3+
using NUnit.Framework;
24

35
namespace ReSharper.Structured.Logging.Tests.Analyzer
46
{
7+
[TestNet60]
58
public class ContextualLoggerConstructorAnalyzerTests : MessageTemplateAnalyzerTestBase
69
{
710
protected override string SubPath => "ContextualLoggerConstructor";

test/src/Constants/NugetPackages.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ internal static class NugetPackages
44
{
55
public const string SerilogNugetPackage = "Serilog/2.7.1";
66

7-
public const string MicrosoftLoggingPackage = "Microsoft.Extensions.Logging/1.0.0";
7+
public const string MicrosoftLoggingPackage = "Microsoft.Extensions.Logging/6.0.0";
88

99
public const string NlogLoggingPackage = "NLog/4.5.11";
1010

0 commit comments

Comments
 (0)