-
Notifications
You must be signed in to change notification settings - Fork 4
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
Could not load file or assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' #2
Comments
Workaround is now in place. In case you grabbed a version before the workaround was implemented, you can run:
On macOS you would need to re-sign the updated version:
|
The root cause of the problem: dotnet-hotrewatch/dotnet-watch/Program.cs Lines 70 to 76 in 558678b
Patches are welcome. |
Is what's needed here a "MSBuild finder"? ISTR I have written such a thing in the past, so I can dig out the code for that. |
The existing locator code works and it's quite stable. It was hard-coded for release build to assume an installation location within the SDK bundle. The assumption is not true anymore when deployed as global tool. Simplest solution would be to remove the non-DEBUG lines linked above. What is not immediately clear is how the tool behaves with global.json file present that forces a non-default SDK version. It's probably worth investigating. |
I am aware of this happening for the packages distributed on NuGet. It happens for Release builds of the tool but doesn't seem to happen for Debug builds. I didn't identify the root cause yet.
The text was updated successfully, but these errors were encountered: