From da060e395f47f9ac6c0cb5779f2e42927540bcb1 Mon Sep 17 00:00:00 2001
From: "dotnet-maestro[bot]"
<42748379+dotnet-maestro[bot]@users.noreply.github.com>
Date: Thu, 17 Jun 2021 17:55:46 +0000
Subject: [PATCH] [release/6.0.1xx-preview6] Update dependencies from
dotnet/runtime (#18291)
[release/6.0.1xx-preview6] Update dependencies from dotnet/runtime
- Cherry pick from 84886a64f8d7b66f092bc94ac3813f01fe5948d4 to fix build errors
---
eng/Version.Details.xml | 52 +++++++++----------
eng/Versions.props | 22 ++++----
.../DependencyProvider.cs | 2 +
src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs | 4 ++
.../WindowsRegistryEnvironmentPathEditor.cs | 2 +
.../MsiWorkloadInstallationRecordManager.cs | 3 ++
.../DependencyProviderTests.cs | 2 +
...enThatWeWantToCollectExceptionTelemetry.cs | 2 +-
.../GivenAnMsiInstallation.cs | 2 +
9 files changed, 53 insertions(+), 38 deletions(-)
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 33d9973adfb6..bc1fabe10439 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -25,37 +25,37 @@
https://github.com/dotnet/templating
d2bbca27dbe1b65b0a14102c6c8078a525f7b39f
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
https://github.com/dotnet/msbuild
@@ -109,21 +109,21 @@
https://github.com/mono/linker
f90f5c929054d4b4b69da0a21db4f69aa64d63af
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
https://github.com/dotnet/windowsdesktop
@@ -236,9 +236,9 @@
https://github.com/dotnet/arcade
fc067a0928f1c8ca4ab3471e9f8edb592e96dec4
-
+
https://github.com/dotnet/runtime
- bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2
+ 3ef9d071b8a668a26d8746fb8c7b827d13e8273c
diff --git a/eng/Versions.props b/eng/Versions.props
index 5693bf6810ca..dc8cbd59d29a 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -31,24 +31,24 @@
5.0.0
6.0.0-beta.21314.1
3.1.0
- 6.0.0-preview.6.21314.2
+ 6.0.0-preview.6.21316.6
4.3.0
4.3.0
4.0.5
4.7.2
- 6.0.0-preview.6.21314.2
+ 6.0.0-preview.6.21316.6
1.0.0-preview1.1.21112.1
4.6.0
- 6.0.0-preview.6.21314.2
- 6.0.0-preview.6.21314.2
- 6.0.0-preview.6.21314.2
+ 6.0.0-preview.6.21316.6
+ 6.0.0-preview.6.21316.6
+ 6.0.0-preview.6.21316.6
$(MicrosoftNETCoreAppRuntimewinx64PackageVersion)
- 6.0.0-preview.6.21314.2
- 6.0.0-preview.6.21314.2
- 6.0.0-preview.6.21314.2
+ 6.0.0-preview.6.21316.6
+ 6.0.0-preview.6.21316.6
+ 6.0.0-preview.6.21316.6
$(MicrosoftExtensionsDependencyModelPackageVersion)
@@ -80,10 +80,10 @@
- 6.0.0-preview.6.21314.2
- 6.0.0-preview.6.21314.2
+ 6.0.0-preview.6.21316.6
+ 6.0.0-preview.6.21316.6
5.0.0-preview.7.20364.11
- 6.0.0-preview.6.21314.2
+ 6.0.0-preview.6.21316.6
diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs
index fe9953168335..d4b3fbf8be3f 100644
--- a/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs
+++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs
@@ -24,6 +24,7 @@ namespace Microsoft.DotNet.Cli.Utils
/// dependent entry. If there are no other dependents, it can proceed to remove the MSI, otherwise it should do nothing.
///
///
+#pragma warning disable CA1416
public sealed class DependencyProvider
{
///
@@ -159,4 +160,5 @@ private IEnumerable GetDependents()
return dependentsKey?.GetSubKeyNames() ?? Enumerable.Empty();
}
}
+#pragma warning restore CA1416
}
diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs
index 3ca0caf5ec14..4a27c217ab45 100644
--- a/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs
+++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs
@@ -2,6 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
+using System.Runtime.Versioning;
using System.Security.Principal;
using System.Threading;
@@ -10,6 +11,9 @@ namespace Microsoft.DotNet.Cli.Utils
///
/// Utility methods, specific to Windows.
///
+#if NET
+ [SupportedOSPlatform("windows")]
+#endif
public static class Windows
{
///
diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs
index 484a03fea0f3..c423cb4b0b2b 100644
--- a/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs
+++ b/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs
@@ -12,6 +12,7 @@
namespace Microsoft.DotNet.Cli.Utils
{
+#pragma warning disable CA1416
internal class WindowsRegistryEnvironmentPathEditor : IWindowsRegistryEnvironmentPathEditor
{
private static string Path = "PATH";
@@ -72,4 +73,5 @@ private static RegistryKey OpenEnvironmentKeyIfExists(bool writable, SdkEnvironm
private const int HWND_BROADCAST = 0xffff;
private const int WM_SETTINGCHANGE = 0x001A;
}
+#pragma warning restore CA1416
}
diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/MsiWorkloadInstallationRecordManager.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/MsiWorkloadInstallationRecordManager.cs
index a750dc0d8de4..aaeca81e91c1 100644
--- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/MsiWorkloadInstallationRecordManager.cs
+++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/MsiWorkloadInstallationRecordManager.cs
@@ -1,5 +1,6 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+#nullable disable
using System.Collections.Generic;
using System.IO;
@@ -9,6 +10,7 @@
namespace Microsoft.DotNet.Workloads.Workload.Install.InstallRecord
{
+#pragma warning disable CA1416
internal class MsiWorkloadInstallationRecordManager : IWorkloadInstallationRecordRepository
{
///
@@ -62,4 +64,5 @@ public void WriteWorkloadInstallationRecord(WorkloadId workloadId, SdkFeatureBan
using RegistryKey wrk = _baseKey.CreateSubKey(Path.Combine(BasePath, $"{sdkFeatureBand}", $"{workloadId}"));
}
}
+#pragma warning restore CA1416
}
diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs
index 99ba98f7866c..d57ec0f2b5e8 100644
--- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs
+++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs
@@ -9,6 +9,7 @@
namespace Microsoft.DotNet.Cli.Utils.Tests
{
+#pragma warning disable CA1416
public class DependencyProviderTests
{
[WindowsOnlyTheory]
@@ -96,4 +97,5 @@ public void ItWillNotRemoveTheProviderIfOtherDependentsExist()
}
}
}
+#pragma warning restore CA1416
}
diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs
index 9d7398114733..02dd254129ac 100644
--- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs
+++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs
@@ -31,7 +31,7 @@ public void It_collects_Exception()
mSBuildCommand
.Execute(telemetryTestLogger, causeTaskToFail)
.StdOut.Should()
- .Contain("\"EventName\":\"taskBaseCatchException\",\"Properties\":{\"exceptionType\":\"System.IO.FileNotFoundException\"")
+ .Contain("\"EventName\":\"taskBaseCatchException\",\"Properties\":{\"exceptionType\":\"System.IO.IOException\"")
.And.Contain("detail");
}
}
diff --git a/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs b/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs
index 2f08df63fbf0..d83f99168622 100644
--- a/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs
+++ b/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs
@@ -11,6 +11,7 @@
namespace Microsoft.DotNet.Cli.Workload.List.Tests
{
+#pragma warning disable CA1416
[Collection("MsiWorkloadRecords")]
public class GivenAnMsiInstallation : IDisposable
{
@@ -71,4 +72,5 @@ private void CreateWorkloadRecord(string sdkFeatureBand, string workloadId)
RecordManager.WriteWorkloadInstallationRecord(new WorkloadId(workloadId), new SdkFeatureBand(sdkFeatureBand));
}
}
+#pragma warning restore CA1416
}