-
Notifications
You must be signed in to change notification settings - Fork 6.1k
x86 host path on x64/arm64 #29968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
x86 host path on x64/arm64 #29968
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| title: "Breaking change: x86 host path on 64-bit Windows" | ||
| description: Learn about the breaking change in deployment where the 32-bit .NET host isn't added to PATH on 64-bit Windows platforms. | ||
| ms.date: 06/22/2022 | ||
| --- | ||
| # x86 host path on 64-bit Windows | ||
|
|
||
| The x86 versions of .NET installers for Windows have been modified to no longer add the x86 host location (*Program Files (x86)\dotnet*) to the `PATH` environment variable on 64-bit Windows systems. | ||
|
|
||
| This change affects .NET Core 3.1, .NET 6, .NET 7, and future versions. | ||
|
|
||
| This change only affects the `dotnet` host. It doesn't affect 32-bit/x86 application hosts, like *myapp.exe*. Those hosts will continue to find the x86 runtime correctly (assuming it's installed). | ||
|
|
||
| ## Previous behavior | ||
|
|
||
| The x86 host location was added to `PATH`, even on x64/Arm64 systems. Depending on which .NET architecture installer was run first, a user's machine could have either the native (x64/Arm64) or x86 host listed first in `PATH`. | ||
|
|
||
| ## New behavior | ||
|
|
||
| Going forward, the x86 host location is only added to the `PATH` environment variable on x86 systems. | ||
|
|
||
| ## Version introduced | ||
|
|
||
| .NET 7 Preview 6 | ||
|
|
||
| ## Reason for change | ||
|
|
||
| Currently, the x86 host location is added to `PATH`, even on x64/Arm64 systems. Depending on which .NET architecture installer is run first, a user's machine could have either the native (x64/Arm64) or the x86 host as the first location in the `PATH` list. This ambiguity causes problems with the initial .NET installation and during .NET servicing events. Any of these installation scenarios can modify the order of .NET hosts in `PATH`, making it non-deterministic. There's a high chance of behavior regression of the .NET runtime. | ||
|
|
||
| This change streamlines the `dotnet` host experience on Windows 64-bit systems. Only 64-bit hosts will be available in the system's `PATH` environment variable: the x64 host on x64 systems and the Arm64 host on Arm64 systems. We removed the ambiguity in the of order of `dotnet` hosts in `PATH`, and only one host will be present. | ||
|
|
||
| ## Recommended action | ||
|
|
||
| If you need the x86 host in the `PATH` environment variable on x64/Arm64 systems, add the host location to `PATH` manually. | ||
|
|
||
| ## Affected APIs | ||
|
|
||
| None. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.