-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
CSC hangs for 20 seconds when run with /shared argument on .NET SDK 8.0.200 #72180
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Wondering if it belongs here or it's more for https://github.com/dotnet/roslyn, @jaredpar maybe you might know? |
Do you have a perf trace of this anywhere, or a dump when it hangs? I'm not able to reproduce this locally. Tried a few variations of the commands. |
@jaredpar do you want file attached here or is there some place to upload or send? |
Debugging a bit locally, and I see the call here to |
Do you see what the value of |
The value of |
After debugging a bit more, it seems like the issue is that we are using a zip/binary deployment of the SDK. We do not have 8.0.200 installed on the machine. The server launch uses the system path to dotnet.exe. So, when I run:
It tries to run the following to launch the server:
And this fails with error:
|
Unfortunately I'm not sure what we can do here. There isn't really an API for "get me the path to the host process" so not sure how to re-use the existing Been discussed in dotnet/runtime before but don't think we came to a resolution. |
So, as a workaround, does that mean that in order to setup a dotnet environment correctly with a custom dotnet SDK path, we need to both set DOTNET_HOST_PATH and PATH accordingly? (As it looks like Roslyn is probing first for |
Yes, but you can also just set PATH accordingly (pointing to the custom SDK first) and DOTNET_HOST_PATH can be unset, I think. |
Describe the bug
The used of the csc
/shared
argument causes a 20 second delay/hang.This seems to be a regression from
8.0.1
.To Reproduce
Using the 8.0.200 SDK
Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: