From 1b70bf43cd6b2249e5cddf00e4152bc0cc9fb9ca Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Wed, 16 Jun 2021 15:00:55 +0000 Subject: [PATCH 1/3] Update dependencies from https://github.com/dotnet/runtime build 20210615.7 Microsoft.NETCore.Platforms , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NET.HostModel , Microsoft.Extensions.DependencyModel , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.Text.Encoding.CodePages , System.CodeDom , VS.Redist.Common.NetCore.SharedFramework.x64.6.0 From Version 6.0.0-preview.6.21314.2 -> To Version 6.0.0-preview.6.21315.7 --- eng/Version.Details.xml | 52 ++++++++++++++++++++--------------------- eng/Versions.props | 22 ++++++++--------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index ccbab9facd1c..d37549349f67 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 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c https://github.com/dotnet/msbuild @@ -109,21 +109,21 @@ https://github.com/mono/linker f90f5c929054d4b4b69da0a21db4f69aa64d63af - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c https://github.com/dotnet/windowsdesktop @@ -236,9 +236,9 @@ https://github.com/dotnet/arcade fc067a0928f1c8ca4ab3471e9f8edb592e96dec4 - + https://github.com/dotnet/runtime - bc16a7bd2dcca7f1f8ce70e75dc86a3fac3ffcd2 + cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c diff --git a/eng/Versions.props b/eng/Versions.props index 2978e4930c6b..a398c703eb80 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.21315.7 4.3.0 4.3.0 4.0.5 4.7.2 - 6.0.0-preview.6.21314.2 + 6.0.0-preview.6.21315.7 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.21315.7 + 6.0.0-preview.6.21315.7 + 6.0.0-preview.6.21315.7 $(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.21315.7 + 6.0.0-preview.6.21315.7 + 6.0.0-preview.6.21315.7 $(MicrosoftExtensionsDependencyModelPackageVersion) @@ -80,10 +80,10 @@ - 6.0.0-preview.6.21314.2 - 6.0.0-preview.6.21314.2 + 6.0.0-preview.6.21315.7 + 6.0.0-preview.6.21315.7 5.0.0-preview.7.20364.11 - 6.0.0-preview.6.21314.2 + 6.0.0-preview.6.21315.7 From 6b18b420dc7137fdd3e3aed169f423d82e0f6a3d Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Wed, 16 Jun 2021 23:47:02 +0000 Subject: [PATCH 2/3] Update dependencies from https://github.com/dotnet/runtime build 20210616.6 Microsoft.NETCore.Platforms , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NET.HostModel , Microsoft.Extensions.DependencyModel , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.Text.Encoding.CodePages , System.CodeDom , VS.Redist.Common.NetCore.SharedFramework.x64.6.0 From Version 6.0.0-preview.6.21314.2 -> To Version 6.0.0-preview.6.21316.6 --- eng/Version.Details.xml | 52 ++++++++++++++++++++--------------------- eng/Versions.props | 22 ++++++++--------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index d37549349f67..9320e4aabbfc 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 - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c https://github.com/dotnet/msbuild @@ -109,21 +109,21 @@ https://github.com/mono/linker f90f5c929054d4b4b69da0a21db4f69aa64d63af - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c https://github.com/dotnet/windowsdesktop @@ -236,9 +236,9 @@ https://github.com/dotnet/arcade fc067a0928f1c8ca4ab3471e9f8edb592e96dec4 - + https://github.com/dotnet/runtime - cf7e7a46f8a4a6225a8f1e059a846ccdebf0454c + 3ef9d071b8a668a26d8746fb8c7b827d13e8273c diff --git a/eng/Versions.props b/eng/Versions.props index a398c703eb80..affc4ca772f9 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.21315.7 + 6.0.0-preview.6.21316.6 4.3.0 4.3.0 4.0.5 4.7.2 - 6.0.0-preview.6.21315.7 + 6.0.0-preview.6.21316.6 1.0.0-preview1.1.21112.1 4.6.0 - 6.0.0-preview.6.21315.7 - 6.0.0-preview.6.21315.7 - 6.0.0-preview.6.21315.7 + 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.21315.7 - 6.0.0-preview.6.21315.7 - 6.0.0-preview.6.21315.7 + 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.21315.7 - 6.0.0-preview.6.21315.7 + 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.21315.7 + 6.0.0-preview.6.21316.6 From c49ed13a7b9913a08d693c356c424d85e1dd7bc4 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Thu, 17 Jun 2021 10:23:21 -0600 Subject: [PATCH 3/3] Cherry pick from 84886a64f8d7b66f092bc94ac3813f01fe5948d4 to fix build errors --- src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs | 2 ++ src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs | 4 ++++ .../WindowsRegistryEnvironmentPathEditor.cs | 2 ++ .../MsiWorkloadInstallationRecordManager.cs | 3 +++ .../DependencyProviderTests.cs | 2 ++ .../GivenThatWeWantToCollectExceptionTelemetry.cs | 2 +- .../dotnet-workload-list.Tests/GivenAnMsiInstallation.cs | 2 ++ 7 files changed, 16 insertions(+), 1 deletion(-) 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 }