diff --git a/Directory.Packages.props b/Directory.Packages.props index 1a83625bdc29..a44ed722182f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -55,6 +55,7 @@ + diff --git a/eng/Version.Details.props b/eng/Version.Details.props index c88cd20c8ed9..d6708ed330ab 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -101,6 +101,7 @@ This file should be imported by eng/Versions.props 10.0.0-rtm.25523.111 10.0.1 10.0.1 + 10.0.1 10.0.1 10.0.1 10.0.1 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index e8d4d98820b8..cde5e4dcbb9c 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -440,6 +440,11 @@ fad253f51b461736dfd3cd9c15977bb7493becef + + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet + fad253f51b461736dfd3cd9c15977bb7493becef + + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet fad253f51b461736dfd3cd9c15977bb7493becef diff --git a/eng/Versions.props b/eng/Versions.props index 705bbfc33b22..051cd561557f 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -80,6 +80,7 @@ 9.0.0 2.0.0-preview.1.24427.4 9.0.0 + 9.0.0 4.5.1 9.0.0 4.5.5 @@ -142,7 +143,7 @@ 10.0.100 - + diff --git a/src/BuiltInTools/Watch/Process/ProcessRunner.cs b/src/BuiltInTools/Watch/Process/ProcessRunner.cs index 4734b844fdce..2cfba7ade091 100644 --- a/src/BuiltInTools/Watch/Process/ProcessRunner.cs +++ b/src/BuiltInTools/Watch/Process/ProcessRunner.cs @@ -1,7 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Diagnostics; using Microsoft.Extensions.Logging; diff --git a/src/BuiltInTools/Watch/Process/ProcessSpec.cs b/src/BuiltInTools/Watch/Process/ProcessSpec.cs index b3e1eaa1a6a6..15e4f1a12eb1 100644 --- a/src/BuiltInTools/Watch/Process/ProcessSpec.cs +++ b/src/BuiltInTools/Watch/Process/ProcessSpec.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - namespace Microsoft.DotNet.Watch { internal sealed class ProcessSpec @@ -14,10 +13,10 @@ internal sealed class ProcessSpec public Action? OnOutput { get; set; } public ProcessExitAction? OnExit { get; set; } public CancellationToken CancelOutputCapture { get; set; } - public bool UseShellExecute { get; set; } = false; + public bool UseShellExecute { get; set; } /// - /// True if the process is a user application, false if it is a helper process (e.g. dotnet build). + /// True if the process is a user application, false if it is a helper process (e.g. dotnet build). /// public bool IsUserApplication { get; set; } diff --git a/src/BuiltInTools/Watch/Process/RunningProject.cs b/src/BuiltInTools/Watch/Process/RunningProject.cs index d94c90fbf6e5..c4d63e953a22 100644 --- a/src/BuiltInTools/Watch/Process/RunningProject.cs +++ b/src/BuiltInTools/Watch/Process/RunningProject.cs @@ -1,7 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections.Immutable; using System.Diagnostics; using Microsoft.Build.Graph; diff --git a/src/BuiltInTools/Watch/Utilities/PathUtilities.cs b/src/BuiltInTools/Watch/Utilities/PathUtilities.cs index e7f21ea13ac6..d8395337dc8a 100644 --- a/src/BuiltInTools/Watch/Utilities/PathUtilities.cs +++ b/src/BuiltInTools/Watch/Utilities/PathUtilities.cs @@ -5,7 +5,7 @@ namespace Microsoft.DotNet.Watch; internal static class PathUtilities { - public static readonly IEqualityComparer OSSpecificPathComparer = Path.DirectorySeparatorChar == '\\' ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal; + public static readonly IEqualityComparer OSSpecificPathComparer = Path.DirectorySeparatorChar == '\\' ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal; public static readonly StringComparison OSSpecificPathComparison = Path.DirectorySeparatorChar == '\\' ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; public static string ExecutableExtension diff --git a/src/Cli/Microsoft.DotNet.FileBasedPrograms/FileLevelDirectiveHelpers.cs b/src/Cli/Microsoft.DotNet.FileBasedPrograms/FileLevelDirectiveHelpers.cs index 8457183e2cba..681843c6cbc8 100644 --- a/src/Cli/Microsoft.DotNet.FileBasedPrograms/FileLevelDirectiveHelpers.cs +++ b/src/Cli/Microsoft.DotNet.FileBasedPrograms/FileLevelDirectiveHelpers.cs @@ -159,9 +159,8 @@ public static void FindLeadingDirectives( if (CSharpDirective.Parse(context) is { } directive) { // If the directive is already present, report an error. - if (deduplicated.ContainsKey(directive)) + if (deduplicated.TryGetValue(directive, out var existingDirective)) { - var existingDirective = deduplicated[directive]; var typeAndName = $"#:{existingDirective.GetType().Name.ToLowerInvariant()} {existingDirective.Name}"; reportError(sourceFile, directive.Info.Span, string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName)); } diff --git a/src/Microsoft.DotNet.ProjectTools/LaunchSettings/LaunchSettings.cs b/src/Microsoft.DotNet.ProjectTools/LaunchSettings/LaunchSettings.cs index 5e22df2e18d7..ae1c60161b27 100644 --- a/src/Microsoft.DotNet.ProjectTools/LaunchSettings/LaunchSettings.cs +++ b/src/Microsoft.DotNet.ProjectTools/LaunchSettings/LaunchSettings.cs @@ -20,7 +20,6 @@ public static class LaunchSettings public static IEnumerable SupportedProfileTypes => s_providers.Keys; - public static string GetPropertiesLaunchSettingsPath(string directoryPath, string propertiesDirectoryName) => Path.Combine(directoryPath, propertiesDirectoryName, "launchSettings.json");