Skip to content

Commit b6fac90

Browse files
Copilotbaronfel
andcommitted
Add mixed installation detection and warning to dotnet --info
Co-authored-by: baronfel <[email protected]>
1 parent 0b45932 commit b6fac90

File tree

58 files changed

+545
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+545
-74
lines changed

src/Cli/Microsoft.DotNet.Cli.Utils/LocalizableStrings.resx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,13 @@ dotnet tool install --global {1}</value>
188188
<data name="DotnetWorkloadInfoLabel" xml:space="preserve">
189189
<value>.NET workloads installed:</value>
190190
</data>
191+
<data name="MixedInstallWarningTitle" xml:space="preserve">
192+
<value>Warning: Mixed-Mode Installation Detected</value>
193+
</data>
194+
<data name="MixedInstallWarningMessageLinux" xml:space="preserve">
195+
<value>The dotnet executable being used is from a global install location ({0}), but the DOTNET_ROOT environment variable is set to a different location ({1}). This can cause unexpected behavior. For more information, see: {2}</value>
196+
</data>
197+
<data name="MixedInstallWarningMessageOther" xml:space="preserve">
198+
<value>The dotnet executable being used is from a global install location ({0}), but the DOTNET_ROOT environment variable is set to a different location ({1}). This indicates a PATH ordering problem. Please ensure that the directory containing the desired dotnet executable appears first in your PATH.</value>
199+
</data>
191200
</root>

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.cs.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.de.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.es.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.fr.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.it.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.ja.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.ko.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.pl.xlf

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

src/Cli/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.pt-BR.xlf

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

0 commit comments

Comments
 (0)