Support `-noPath` in `InstallDotNet` function
See original GitHub issue- This issue is blocking aspnetcore’s merge from preview8: dotnet/aspnetcore#25280
- This issue is causing unreasonable pain
The dotnet/aspnetcore repo needs the latest runtime for some tests that run in Helix. We prefer to use the InstallDotNet
function for this purpose because it supports private runtime feeds and we had too much custom infrastructure around the installation already.
Unfortunately, invoking dotnet-install.ps1 extends the $env:Path
default system-wide unless -noPath
is on the command line. The InstallDotNet
function does not current support including that command-line argument. Please either add a $noPath
parameter or (more generally) support the initial $installParameters
value as a parameter.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
dotnet-install scripts - .NET CLI
Specifies the installation path. The directory is created if it doesn't exist. The default value is %LocalAppData%\Microsoft\dotnet on Windows ...
Read more >dotnet command - .NET CLI
The dotnet command has two functions: It provides commands for working with .NET projects. For example, dotnet build builds a project.
Read more >Troubleshoot .NET tool usage issues
Discover the common issues when running .NET tools and possible solutions.
Read more >Support running on M1 Macs · Issue #2834 · Azure ...
Im running on python 3.9.10 on Latest Azure functions 3x I previously had a project running on 2x and just recently created a...
Read more >The .NET Core SDK cannot be located. . ...
Just simply close your VS Code app. It seems the error is produced because you are installing .NET Core SDK when your VS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I discussed this with @dougbu and ended up making the tweak only for the PS1 version of the scripts in the linked PR.
This is specifically for two reasons:
export PATH=...
if specified)This change, along with some helix script changes which restore the registry every work item on Windows, buys us basically unlimited time to solve this problem the right way, which is to make the changes described in https://github.com/dotnet/arcade/issues/6005
I plan to work on this next week after I get the existing workarounds merged for this.