Check that SDK and app archs match before setting DOTNET_ROOT when using dotnet run#19860
Check that SDK and app archs match before setting DOTNET_ROOT when using dotnet run#19860mateoatr merged 9 commits intodotnet:mainfrom
DOTNET_ROOT when using dotnet run#19860Conversation
Update tests
vitek-karas
left a comment
There was a problem hiding this comment.
Looks good - please wait for SDK owners to also review this.
Allow test asset copy
|
Can/will enthusiastically test this as soon as there is a build. |
Keep behavior if there is no host to retrieve target arch from
|
Question: Is this already in the release/when will this be in the installer? |
|
This fix is in .NET 6 GA - so if you download the final release of .NET 6, it should be there. |
|
Thx. Correct if i'm wrong, i need to uninstall .net5 then? |
|
You should not need to uninstall .NET 5. The SDKs are side by side - so both can be installed. By default commands like You can try this by running .NET SDK (reflecting any global.json):
Version: 6.0.200-preview.21573.3
Commit: a2bb0dde82Which will contain the exact SDK version used by the command (and |
Fixes #19743. I tested this locally. The steps for reproing the fix are already in the above issue. For checking the app's architecture, this first checks for the
RuntimeIdentifierproperty of the project to run, if not set, it'll grab the architecture from theDefaultAppHostRuntimeIdentifierprop.