Skip to content

Commit 7812c52

Browse files
authored
Merge branch 'release/9.0.2xx' into FileWatcherImprovements
2 parents 5bef206 + 6d67e2a commit 7812c52

38 files changed

+277
-155
lines changed

eng/Versions.props

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,6 @@
3939
referenced by the same 7.0 SDK that references the 7.0.VersionFeature70 runtime pack. -->
4040
<_NET70ILLinkPackVersion>7.0.100-1.23211.1</_NET70ILLinkPackVersion>
4141
</PropertyGroup>
42-
<PropertyGroup Label="AspNetCore template versioning">
43-
<!-- Automated versions for asp.net templates -->
44-
<MicrosoftNETSdkPatchVersion>$(VersionFeature)</MicrosoftNETSdkPatchVersion>
45-
<!--
46-
Between branding and shipping, the templates should stay at last month's version.
47-
If the incoming SDK version is 2 versions behind us, we know we just branded but haven't done the internal -> public merge yet.
48-
Therefore we stay at last month's version.
49-
We also need to special case the 1st patch release, because the incoming SDK version will never be 2 versions behind us in that case.
50-
Instead the indicator is that the incoming SDK version is not RTM or greater yet.
51-
Preview releases already use -1 versionining so don't subtract one for that version.
52-
In public builds, we always use the 2 month old version.
53-
-->
54-
<SubtractOneFromTemplateVersions Condition="'$(SYSTEM_TEAMPROJECT)' != 'internal'">true</SubtractOneFromTemplateVersions>
55-
<SubtractOneFromTemplateVersions Condition="$([MSBuild]::Subtract($(VersionFeature), $(MicrosoftNETSdkPatchVersion))) &gt;= 2">true</SubtractOneFromTemplateVersions>
56-
<SubtractOneFromTemplateVersions Condition="$(VersionFeature) &gt;= 1 AND ! $(PreReleaseVersionLabel.Contains('rtm')) AND ! $(PreReleaseVersionLabel.Contains('servicing'))">true</SubtractOneFromTemplateVersions>
57-
</PropertyGroup>
5842
<PropertyGroup Label="Restore feeds">
5943
<!-- In an orchestrated build, this may be overridden to other Azure feeds. -->
6044
<DotNetAssetRootUrl Condition="'$(DotNetAssetRootUrl)'==''">https://dotnetbuilds.blob.core.windows.net/public/</DotNetAssetRootUrl>

src/BuiltInTools/dotnet-format/Commands/FormatCommandCommon.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ internal static class FormatCommandCommon
1515
internal const int UnhandledExceptionExitCode = 1;
1616
internal const int CheckFailedExitCode = 2;
1717
internal const int UnableToLocateMSBuildExitCode = 3;
18-
internal const int UnableToLocateDotNetCliExitCode = 4;
1918

2019
private static string[] VerbosityLevels => new[] { "q", "quiet", "m", "minimal", "n", "normal", "d", "detailed", "diag", "diagnostic" };
2120
private static string[] SeverityLevels => new[] { "info", "warn", "error" };
@@ -102,14 +101,6 @@ internal static async Task<int> FormatAsync(FormatOptions formatOptions, ILogger
102101
var runtimeVersion = GetRuntimeVersion();
103102
logger.LogDebug(Resources.The_dotnet_runtime_version_is_0, runtimeVersion);
104103

105-
if (!TryGetDotNetCliVersion(out var dotnetVersion))
106-
{
107-
logger.LogError(Resources.Unable_to_locate_dotnet_CLI_Ensure_that_it_is_on_the_PATH);
108-
return UnableToLocateDotNetCliExitCode;
109-
}
110-
111-
logger.LogTrace(Resources.The_dotnet_CLI_version_is_0, dotnetVersion);
112-
113104
if (!TryLoadMSBuild(out var msBuildPath))
114105
{
115106
logger.LogError(Resources.Unable_to_locate_MSBuild_Ensure_the_NET_SDK_was_installed_with_the_official_installer);
@@ -354,23 +345,6 @@ private static string EnsureTrailingSlash(string path)
354345
?.InformationalVersion;
355346
}
356347

357-
internal static bool TryGetDotNetCliVersion([NotNullWhen(returnValue: true)] out string? dotnetVersion)
358-
{
359-
try
360-
{
361-
var processInfo = ProcessRunner.CreateProcess("dotnet", "--version", captureOutput: true, displayWindow: false);
362-
var versionResult = processInfo.Result.GetAwaiter().GetResult();
363-
364-
dotnetVersion = versionResult.OutputLines[0].Trim();
365-
return true;
366-
}
367-
catch
368-
{
369-
dotnetVersion = null;
370-
return false;
371-
}
372-
}
373-
374348
internal static bool TryLoadMSBuild([NotNullWhen(returnValue: true)] out string? msBuildPath)
375349
{
376350
try

src/BuiltInTools/dotnet-format/Resources.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@
225225
<data name="Standard_input_used_multiple_times" xml:space="preserve">
226226
<value>Standard input markers ('/dev/stdin', '-') can only be used either with `--include` or `--exclude`, but not both.</value>
227227
</data>
228-
<data name="Unable_to_locate_dotnet_CLI_Ensure_that_it_is_on_the_PATH" xml:space="preserve">
229-
<value>Unable to locate dotnet CLI. Ensure that it is on the PATH.</value>
230-
</data>
231228
<data name="The_dotnet_CLI_version_is_0" xml:space="preserve">
232229
<value>The dotnet CLI version is '{0}'.</value>
233230
</data>

src/BuiltInTools/dotnet-format/xlf/Resources.cs.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BuiltInTools/dotnet-format/xlf/Resources.de.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BuiltInTools/dotnet-format/xlf/Resources.es.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BuiltInTools/dotnet-format/xlf/Resources.fr.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BuiltInTools/dotnet-format/xlf/Resources.it.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BuiltInTools/dotnet-format/xlf/Resources.ja.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BuiltInTools/dotnet-format/xlf/Resources.ko.xlf

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)