Skip to content

Conversation

@pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Apr 1, 2021

The runtime uses DOTNET_ROOT to locate the .NET runtime. When unspecified,
the CLI will continue to use the runtime from the global default.

If you install dotnet to a location, configure the PATH, but not the runtime
then you end up running in to issues where it complains about missing runtime.

Separately make sure we're only configuring process variables once. They remain unchanged for the lifetime of hot reload so it's just additional code that does not need to run.

The runtime uses DOTNET_ROOT to locate the .NET runtime. When unspecified,
the CLI will continue to use the runtime from the global default.

If you install dotnet to a location, configure the PATH, but not the runtime
then you end up running in to issues where it complains about missing runtime.
@ghost
Copy link

ghost commented Apr 1, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@pranavkm pranavkm added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Apr 1, 2021
processSpec.EnvironmentVariables["ASPNETCORE_URLS"] = context.DefaultLaunchSettingsProfile.ApplicationUrl;
}

var rootVariableName = Environment.Is64BitProcess ? "DOTNET_ROOT" : "DOTNET_ROOT(x86)";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that really the name of the x86 root? That feels different that from what I remember.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pranavkm pranavkm merged commit 2a788df into main Apr 2, 2021
@pranavkm pranavkm deleted the prkrishn/configure-dotnetroot branch April 2, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants