Browse Source

Update SDK to 8.0.100-preview.5.23226.2 (#47540)

* Update SDK; use ArgumentOutOfRangeException.ThrowIfEqual instead of new instance

* Fix compiler warning.

* Update SDK to 8.0.100-preview.5.23226.2

* Suppress EnableGenerateDocumentationFile error to unblock the new SDK

---------

Co-authored-by: Brennan <[email protected]>
Co-authored-by: Mackinnon Buck <[email protected]>
Co-authored-by: William Godbe <[email protected]>
Co-authored-by: Mitch Denny <[email protected]>
Co-authored-by: Mitch Denny <[email protected]>
Co-authored-by: Sébastien Ros <[email protected]>
Co-authored-by: Eric Erhardt <[email protected]>
Surayya Huseyn Zada 2 years ago
parent
commit
1b785136a2

+ 3 - 0
.globalconfig

@@ -9,3 +9,6 @@ dotnet_diagnostic.CA1304.severity = error
 
 # CA1310: Specify StringComparison for correctness
 dotnet_diagnostic.CA1310.severity = error
+
+# TODO: remove this - https://github.com/dotnet/aspnetcore/issues/47912
+dotnet_diagnostic.EnableGenerateDocumentationFile.severity = none

+ 2 - 2
global.json

@@ -1,9 +1,9 @@
 {
   "sdk": {
-    "version": "8.0.100-preview.4.23176.5"
+    "version": "8.0.100-preview.5.23226.2"
   },
   "tools": {
-    "dotnet": "8.0.100-preview.4.23176.5",
+    "dotnet": "8.0.100-preview.5.23226.2",
     "runtimes": {
       "dotnet/x86": [
         "$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"

+ 3 - 3
src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeployer.cs

@@ -123,7 +123,7 @@ public class RemoteWindowsDeployer : ApplicationDeployer
             }
             catch (Exception ex)
             {
-                Logger.LogWarning(0, "Failed to stop the server.", ex);
+                Logger.LogWarning(0, ex, "Failed to stop the server.");
             }
 
             try
@@ -133,7 +133,7 @@ public class RemoteWindowsDeployer : ApplicationDeployer
             }
             catch (Exception ex)
             {
-                Logger.LogWarning(0, $"Failed to delete the deployed folder '{_deployedFolderPathInFileShare}'.", ex);
+                Logger.LogWarning(0, ex, $"Failed to delete the deployed folder '{_deployedFolderPathInFileShare}'.");
             }
 
             try
@@ -143,7 +143,7 @@ public class RemoteWindowsDeployer : ApplicationDeployer
             }
             catch (Exception ex)
             {
-                Logger.LogWarning(0, $"Failed to delete the locally published folder '{DeploymentParameters.PublishedApplicationRootPath}'.", ex);
+                Logger.LogWarning(0, ex, $"Failed to delete the locally published folder '{DeploymentParameters.PublishedApplicationRootPath}'.");
             }
         }
     }

+ 6 - 0
src/ProjectTemplates/test/Templates.Blazor.WebAssembly.Auth.Tests/BlazorWasmTemplateAuthTest.cs

@@ -264,31 +264,37 @@ public class BlazorWasmTemplateAuthTest : BlazorTemplateTest
 
     [ConditionalTheory]
     [MemberData(nameof(TemplateDataIndividualB2C))]
+    [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/47933")]
     public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_IndividualB2C_Works(TemplateInstance instance)
         => CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments, targetFramework: "netstandard2.1");
 
     [ConditionalTheory]
     [MemberData(nameof(TemplateDataIndividualB2C))]
+    [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/47933")]
     public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_IndividualB2C_NoHttps_Works(TemplateInstance instance)
         => CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments.Union(new[] { ArgConstants.NoHttps }).ToArray(), targetFramework: "netstandard2.1");
 
     [ConditionalTheory]
     [MemberData(nameof(TemplateDataSingleOrg))]
+    [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/47933")]
     public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_SingleOrg_Works(TemplateInstance instance)
         => CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments, targetFramework: "netstandard2.1");
 
     [ConditionalTheory]
     [MemberData(nameof(TemplateDataSingleOrg))]
+    [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/47933")]
     public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_SingleOrg_NoHttps_Works(TemplateInstance instance)
         => CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments.Union(new[] { ArgConstants.NoHttps }).ToArray(), targetFramework: "netstandard2.1");
 
     [ConditionalTheory]
     [MemberData(nameof(TemplateDataSingleOrgProgramMain))]
+    [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/47933")]
     public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_SingleOrg_ProgramMain_Works(TemplateInstance instance)
         => CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments, targetFramework: "netstandard2.1");
 
     [ConditionalTheory]
     [MemberData(nameof(TemplateDataSingleOrgProgramMain))]
+    [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/47933")]
     public Task BlazorWasmHostedTemplate_AzureActiveDirectoryTemplate_SingleOrg_NoHttps_ProgramMain_Works(TemplateInstance instance)
         => CreateBuildPublishAsync(auth: instance.Auth, args: instance.Arguments.Union(new[] { ArgConstants.NoHttps }).ToArray(), targetFramework: "netstandard2.1");
 

+ 1 - 1
src/Servers/IIS/IntegrationTesting.IIS/src/RetryHandler.cs

@@ -34,7 +34,7 @@ public class RetryHandler : DelegatingHandler
             }
             catch (Exception ex)
             {
-                _logger.LogWarning("Error sending request", ex);
+                _logger.LogWarning(ex, "Error sending request");
                 if (i == MaxRetries - 1)
                 {
                     throw;

+ 1 - 4
src/SignalR/common/Http.Connections/src/HttpConnectionDispatcherOptions.cs

@@ -108,10 +108,7 @@ public class HttpConnectionDispatcherOptions
         get => _transportSendTimeout;
         set
         {
-            if (value == TimeSpan.Zero)
-            {
-                throw new ArgumentOutOfRangeException(nameof(value));
-            }
+            ArgumentOutOfRangeException.ThrowIfEqual(value, TimeSpan.Zero);
 
             _transportSendTimeout = value;
             TransportSendTimeoutTicks = value.Ticks;

+ 1 - 1
src/Tools/dotnet-user-jwts/src/Commands/ListCommand.cs

@@ -54,7 +54,7 @@ internal sealed class ListCommand
     {
         if (jwtStore.Jwts is { Count: > 0 } jwts)
         {
-            reporter.Output(JsonSerializer.Serialize(jwtStore.Jwts, new JsonSerializerOptions { WriteIndented = true }));
+            reporter.Output(JsonSerializer.Serialize(jwts, new JsonSerializerOptions { WriteIndented = true }));
         }
         else
         {