You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment this behavior is "By Design". The compiler will use the dotnet which is available on $PATH.
Various parts of dotnet/sdk seem to set the DOTNET_HOST_PATH environment variable, and this is no longer being used.
That is an implementation detail of our internal architecture that leaked into the shipping product. Very confident our conclusion is going to be that this needs to be removed from the product.
If you feel a better appproach is in order here please put the discussion on dotnet/runtime#88754. That is the design we are following here.
Version Used:
Microsoft (R) Visual C# Compiler version 4.8.0-1.23361.12 (86156fa)
.NET SDK:
Version: 8.0.100-preview.7.23362.1
Commit: cb8652231d
Steps to Reproduce:
Following steps are for macOS but I believe this would also repro on Windows.
a. Download https://dotnetbuilds.azureedge.net/public/Sdk/8.0.100-preview.7.23362.1/dotnet-sdk-8.0.100-preview.7.23362.1-osx-x86.tar.gz
b. mkdir .dotnet
c. /usr/bin/tar -C .dotnet -xf dotnet-sdk-8.0.100-preview.7.23362.1-osx-x64.tar.gz
a. /full/path/to/.dotnet/dotnet new console -o test
a. cd test
b. /full/path/to/.dotnet/.dotnet/dotnet msbuild
Diagnostic Id:
If this is a report about a bug in an analyzer, please include the diagnostic if possible (e.g.
"IDE0030"
).Expected Behavior:
Console project builds successfully.
dotnet from the local copied directory is used by msbuild.
Actual Behavior:
Build fails:
Build works with .NET 8 preview 6 SDK.
Other workarounds:
My guess is that this may be due to this change:
854fa07
Various parts of dotnet/sdk seem to set the DOTNET_HOST_PATH environment variable, and this is no longer being used.
Also some discussion here about the DOTNET_HOST_PATH environment variable - dotnet/runtime#88754 (comment)
The text was updated successfully, but these errors were encountered: