diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c1f2ea1..8f6304b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Please ADD ALL Changes to the UNRELEASED SECTION and not a specific release - Dependencies - Updated Meziantou.Analyzer to 2.0.141 - Dependencies - Updated NSubstitute.Analyzers.CSharp to 1.0.17 - Dependencies - Updated NuGet to 6.9.1 +- SDK - Updated DotNet SDK to 8.0.200 ### Removed ### Deployment Changes diff --git a/src/FunFair.BuildCheck.ProjectChecks/Helpers/ProjectValueHelpers.cs b/src/FunFair.BuildCheck.ProjectChecks/Helpers/ProjectValueHelpers.cs index b2d266a2..18938860 100644 --- a/src/FunFair.BuildCheck.ProjectChecks/Helpers/ProjectValueHelpers.cs +++ b/src/FunFair.BuildCheck.ProjectChecks/Helpers/ProjectValueHelpers.cs @@ -11,15 +11,15 @@ namespace FunFair.BuildCheck.ProjectChecks.Helpers; internal static class ProjectValueHelpers { - private static readonly IReadOnlyList PackagesForTestProjectDetection = new[] - { - "xunit", - "xunit.runner.visualstudio", - "NSubstitute", - "Microsoft.NET.Test.Sdk", - "TeamCity.VSTest.TestAdapter", - "FunFair.Test.Common" - }; + private static readonly IReadOnlyList PackagesForTestProjectDetection = + [ + "xunit", + "xunit.runner.visualstudio", + "NSubstitute", + "Microsoft.NET.Test.Sdk", + "TeamCity.VSTest.TestAdapter", + "FunFair.Test.Common" + ]; public static bool IsDotNetTool(this XmlDocument project) { @@ -151,12 +151,7 @@ public static void CheckValue(string projectName, XmlDocument project, string no CheckValueCommon(projectName: projectName, project: project, nodePresence: nodePresence, isRequiredValue: isRequiredValue, requiredValueDisplayText: msg, logger: logger); } - private static void CheckValueCommon(string projectName, - XmlDocument project, - string nodePresence, - Func isRequiredValue, - string requiredValueDisplayText, - ILogger logger) + private static void CheckValueCommon(string projectName, XmlDocument project, string nodePresence, Func isRequiredValue, string requiredValueDisplayText, ILogger logger) { bool hasGlobalSetting = CheckGlobalSettings(project: project, nodePresence: nodePresence, isRequiredValue: isRequiredValue); diff --git a/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotDisableUnexpectedWarnings.cs b/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotDisableUnexpectedWarnings.cs index 6251fcad..c602ac28 100644 --- a/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotDisableUnexpectedWarnings.cs +++ b/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotDisableUnexpectedWarnings.cs @@ -13,11 +13,11 @@ namespace FunFair.BuildCheck.ProjectChecks.ReferencedPackages; public sealed class MustNotDisableUnexpectedWarnings : IProjectCheck { - private static readonly IReadOnlyList AllowedWarnings = new[] - { - // Xml Docs - "1591" - }; + private static readonly IReadOnlyList AllowedWarnings = + [ + // Xml Docs + "1591" + ]; private static readonly IReadOnlyList AllowedTestProjectWarnings = Array.Empty(); diff --git a/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotReferenceObsoleteAspNetPackages.cs b/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotReferenceObsoleteAspNetPackages.cs index 0733ec0b..bb91109e 100644 --- a/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotReferenceObsoleteAspNetPackages.cs +++ b/src/FunFair.BuildCheck.ProjectChecks/ReferencedPackages/MustNotReferenceObsoleteAspNetPackages.cs @@ -5,94 +5,92 @@ namespace FunFair.BuildCheck.ProjectChecks.ReferencedPackages; public sealed class MustNotReferenceObsoleteAspNetPackages : MustNotReferencePackages { - private static readonly IReadOnlyList PackageIds = new[] - { - "Microsoft.AspNetCore", - "Microsoft.AspNetCore.All", - "Microsoft.AspNetCore.App", - "Microsoft.AspNetCore.Antiforgery", - "Microsoft.AspNetCore.Authentication", - "Microsoft.AspNetCore.Authentication.Abstractions", - "Microsoft.AspNetCore.Authentication.Cookies", - "Microsoft.AspNetCore.Authentication.Core", + private static readonly IReadOnlyList PackageIds = + [ + "Microsoft.AspNetCore", + "Microsoft.AspNetCore.All", + "Microsoft.AspNetCore.App", + "Microsoft.AspNetCore.Antiforgery", + "Microsoft.AspNetCore.Authentication", + "Microsoft.AspNetCore.Authentication.Abstractions", + "Microsoft.AspNetCore.Authentication.Cookies", + "Microsoft.AspNetCore.Authentication.Core", - //"Microsoft.AspNetCore.Authentication.JwtBearer", - "Microsoft.AspNetCore.Authentication.OAuth", - "Microsoft.AspNetCore.Authentication.OpenIdConnect", - "Microsoft.AspNetCore.Authorization", - "Microsoft.AspNetCore.Authorization.Policy", - "Microsoft.AspNetCore.CookiePolicy", - "Microsoft.AspNetCore.Cors", - "Microsoft.AspNetCore.Cryptography.Internal", - "Microsoft.AspNetCore.Cryptography.KeyDerivation", - "Microsoft.AspNetCore.DataProtection", - "Microsoft.AspNetCore.DataProtection.Abstractions", - "Microsoft.AspNetCore.DataProtection.Extensions", - "Microsoft.AspNetCore.Diagnostics", - "Microsoft.AspNetCore.Diagnostics.HealthChecks", - "Microsoft.AspNetCore.HostFiltering", - "Microsoft.AspNetCore.Hosting", - "Microsoft.AspNetCore.Hosting.Abstractions", - "Microsoft.AspNetCore.Hosting.Server.Abstractions", - "Microsoft.AspNetCore.Http", - "Microsoft.AspNetCore.Http.Abstractions", - "Microsoft.AspNetCore.Http.Connections", - "Microsoft.AspNetCore.Http.Extensions", - "Microsoft.AspNetCore.Http.Features", - "Microsoft.AspNetCore.HttpOverrides", - "Microsoft.AspNetCore.HttpsPolicy", - "Microsoft.AspNetCore.Identity", - "Microsoft.AspNetCore.Localization", - "Microsoft.AspNetCore.Localization.Routing", - "Microsoft.AspNetCore.MiddlewareAnalysis", - "Microsoft.AspNetCore.Mvc", + //"Microsoft.AspNetCore.Authentication.JwtBearer", + "Microsoft.AspNetCore.Authentication.OAuth", + "Microsoft.AspNetCore.Authentication.OpenIdConnect", + "Microsoft.AspNetCore.Authorization", + "Microsoft.AspNetCore.Authorization.Policy", + "Microsoft.AspNetCore.CookiePolicy", + "Microsoft.AspNetCore.Cors", + "Microsoft.AspNetCore.Cryptography.Internal", + "Microsoft.AspNetCore.Cryptography.KeyDerivation", + "Microsoft.AspNetCore.DataProtection", + "Microsoft.AspNetCore.DataProtection.Abstractions", + "Microsoft.AspNetCore.DataProtection.Extensions", + "Microsoft.AspNetCore.Diagnostics", + "Microsoft.AspNetCore.Diagnostics.HealthChecks", + "Microsoft.AspNetCore.HostFiltering", + "Microsoft.AspNetCore.Hosting", + "Microsoft.AspNetCore.Hosting.Abstractions", + "Microsoft.AspNetCore.Hosting.Server.Abstractions", + "Microsoft.AspNetCore.Http", + "Microsoft.AspNetCore.Http.Abstractions", + "Microsoft.AspNetCore.Http.Connections", + "Microsoft.AspNetCore.Http.Extensions", + "Microsoft.AspNetCore.Http.Features", + "Microsoft.AspNetCore.HttpOverrides", + "Microsoft.AspNetCore.HttpsPolicy", + "Microsoft.AspNetCore.Identity", + "Microsoft.AspNetCore.Localization", + "Microsoft.AspNetCore.Localization.Routing", + "Microsoft.AspNetCore.MiddlewareAnalysis", + "Microsoft.AspNetCore.Mvc", - // "Microsoft.AspNetCore.Mvc.Abstractions", - "Microsoft.AspNetCore.Mvc.Analyzers", - "Microsoft.AspNetCore.Mvc.ApiExplorer", - "Microsoft.AspNetCore.Mvc.Api.Analyzers", - "Microsoft.AspNetCore.Mvc.Core", - "Microsoft.AspNetCore.Mvc.Cors", - "Microsoft.AspNetCore.Mvc.DataAnnotations", - "Microsoft.AspNetCore.Mvc.Formatters.Json", - "Microsoft.AspNetCore.Mvc.Formatters.Xml", - "Microsoft.AspNetCore.Mvc.Localization", - "Microsoft.AspNetCore.Mvc.Razor", - "Microsoft.AspNetCore.Mvc.Razor.Extensions", - "Microsoft.AspNetCore.Mvc.Razor.ViewCompilation", - "Microsoft.AspNetCore.Mvc.RazorPages", - "Microsoft.AspNetCore.Mvc.TagHelpers", - "Microsoft.AspNetCore.Mvc.ViewFeatures", - "Microsoft.AspNetCore.Razor", - "Microsoft.AspNetCore.Razor.Runtime", - "Microsoft.AspNetCore.Razor.Design", - "Microsoft.AspNetCore.ResponseCaching", - "Microsoft.AspNetCore.ResponseCaching.Abstractions", - "Microsoft.AspNetCore.ResponseCompression", - "Microsoft.AspNetCore.Rewrite", - "Microsoft.AspNetCore.Routing", - "Microsoft.AspNetCore.Routing.Abstractions", - "Microsoft.AspNetCore.Server.HttpSys", - "Microsoft.AspNetCore.Server.IIS", - "Microsoft.AspNetCore.Server.IISIntegration", - "Microsoft.AspNetCore.Server.Kestrel", - "Microsoft.AspNetCore.Server.Kestrel.Core", - "Microsoft.AspNetCore.Server.Kestrel.Https", - "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions", - "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets", - "Microsoft.AspNetCore.Session", - "Microsoft.AspNetCore.SignalR", - "Microsoft.AspNetCore.SignalR.Core", - "Microsoft.AspNetCore.StaticFiles", - "Microsoft.AspNetCore.WebSockets", - "Microsoft.AspNetCore.WebUtilities", - "Microsoft.Net.Http.Headers" - }; + // "Microsoft.AspNetCore.Mvc.Abstractions", + "Microsoft.AspNetCore.Mvc.Analyzers", + "Microsoft.AspNetCore.Mvc.ApiExplorer", + "Microsoft.AspNetCore.Mvc.Api.Analyzers", + "Microsoft.AspNetCore.Mvc.Core", + "Microsoft.AspNetCore.Mvc.Cors", + "Microsoft.AspNetCore.Mvc.DataAnnotations", + "Microsoft.AspNetCore.Mvc.Formatters.Json", + "Microsoft.AspNetCore.Mvc.Formatters.Xml", + "Microsoft.AspNetCore.Mvc.Localization", + "Microsoft.AspNetCore.Mvc.Razor", + "Microsoft.AspNetCore.Mvc.Razor.Extensions", + "Microsoft.AspNetCore.Mvc.Razor.ViewCompilation", + "Microsoft.AspNetCore.Mvc.RazorPages", + "Microsoft.AspNetCore.Mvc.TagHelpers", + "Microsoft.AspNetCore.Mvc.ViewFeatures", + "Microsoft.AspNetCore.Razor", + "Microsoft.AspNetCore.Razor.Runtime", + "Microsoft.AspNetCore.Razor.Design", + "Microsoft.AspNetCore.ResponseCaching", + "Microsoft.AspNetCore.ResponseCaching.Abstractions", + "Microsoft.AspNetCore.ResponseCompression", + "Microsoft.AspNetCore.Rewrite", + "Microsoft.AspNetCore.Routing", + "Microsoft.AspNetCore.Routing.Abstractions", + "Microsoft.AspNetCore.Server.HttpSys", + "Microsoft.AspNetCore.Server.IIS", + "Microsoft.AspNetCore.Server.IISIntegration", + "Microsoft.AspNetCore.Server.Kestrel", + "Microsoft.AspNetCore.Server.Kestrel.Core", + "Microsoft.AspNetCore.Server.Kestrel.Https", + "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions", + "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets", + "Microsoft.AspNetCore.Session", + "Microsoft.AspNetCore.SignalR", + "Microsoft.AspNetCore.SignalR.Core", + "Microsoft.AspNetCore.StaticFiles", + "Microsoft.AspNetCore.WebSockets", + "Microsoft.AspNetCore.WebUtilities", + "Microsoft.Net.Http.Headers" + ]; public MustNotReferenceObsoleteAspNetPackages(ILogger logger) - : base(packageIds: PackageIds, - reason: "Obsoleted as direct reference with .net core 3.1 use the implicit reference through ", - logger: logger) + : base(packageIds: PackageIds, reason: "Obsoleted as direct reference with .net core 3.1 use the implicit reference through ", logger: logger) { } } \ No newline at end of file diff --git a/src/global.json b/src/global.json index 08d28b1d..1a25142c 100644 --- a/src/global.json +++ b/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.101", + "version": "8.0.200", "allowPrerelease": false, "rollForward": "latestPatch" }