dotnet-installer/test/Microsoft.DotNet.ShellShim.Tests
Peter Huene 19090744cb
Fix failure to add tools path on restricted Windows environments.
On environments where registry access is disabled, the first run experience
fails because it could not add the tools path to the user's environment.

This fix properly handles the security exception by printing a warning and
continuing.  Users will have to manually add the PATH environment variable to
their environments to prevent `dotnet tool install` from printing PATH
instructions.

A new file sentinel is added to track whether or not the PATH has been
modified.  The first run experience also now correctly skips modifying the PATH
if `DOTNET_SKIP_FIRST_TIME_EXPERIENCE` is set.

Fixes #8874.
2018-04-03 16:27:01 -07:00
..
LinuxEnvironmentPathTests.cs Fix failure to add tools path on restricted Windows environments. 2018-04-03 16:27:01 -07:00
Microsoft.DotNet.ShellShim.Tests.csproj Use rich mock to test InstallCommand (#8402) 2018-01-24 10:16:27 -08:00
OsxEnvironmentPathTests.cs Fix failure to add tools path on restricted Windows environments. 2018-04-03 16:27:01 -07:00
ShellShimRepositoryTests.cs Apphost shim (#8893) 2018-04-02 12:37:25 -07:00
WindowsEnvironmentPathTests.cs Fix failure to add tools path on restricted Windows environments. 2018-04-03 16:27:01 -07:00