-
Notifications
You must be signed in to change notification settings - Fork 1.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
[dotnet-sdk-7.0.100-preview.5.22276.4]Unhandled System.IO.FileLoadException shows when dotnet format project #25879
Comments
@marcpopMSFT Could you please help confirm whether it is a blocker for .NET 7.0 Preview 5 validation? Please help move it to the right area if this is incorrect. Thanks. |
@jmarolf @JoeRobich own the format tool so they'd have to comment. It's probably too late for preview 5... |
Was able to reproduce. Seems we might need to take an updated MSBuild dependency. Hope to have something this afternoon, if we still have time. |
Reopening until we have inserted a fixed build |
@marcpopMSFT The build has inserted into main but not the preview 5 branch. Opened #25922 to backport to preview 5. Feel free to close if it is too late. |
A fix inserted into main in #25907. Closing this out because it did not make the final Preview 5 build. A known issue has been added for Preview 5 (dotnet/core#7525). |
For completeness, no update should have been required, but the update is fine. Tracking the full fix at microsoft/MSBuildLocator#159. |
Verified with dotnet-sdk-7.0.100-preview.6.22310.18, this issue has been fixed. |
Description
dotnet format app that comes with SDK has this exception:
Unhandled exception: System.IO.FileLoadException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=6.0.0.0
Verify Scenarios:
1). Windows10 RS5 x64+dotnet-sdk-7.0.100-preview.5.22303.5: Fail
2). Windows10 RS5 x64+ dotnet-sdk-7.0.100-preview.5.22276.4: Fail
3). Windows10 RS5 x64+dotnet-sdk-7.0.100-preview.4.22252.9: Pass
Reproduction Steps
The machine only has 7.0 installed. And DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2 is set.
1 )Install sdk: 7.0.100-preview.5.22303.5:
2) In CMD,Go to a project folder with a project file(csproj)
3) Run dotnet format
Expected behavior
Project files should be formatted
Actual behavior
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: