-
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 format style
fails when requiring .NET Framework Build Host exe
#43017
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. |
1 similar comment
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. |
dotnet format style
fails when .sln contains .NET Framework projectdotnet format style
fails when requiring .NET Framework Build Host exe
This is blocking NuGet from targeting .NET 9 since we run
/cc @baronfel |
@sharwell @arkalyanms can either of you take a look? |
I had this issue after installing Visual Studio Enterprise 2022. It seems it also installed the 9.0.100 SDK. I reverted to the 8.0.205 SDK, and the error is gone. |
This issue is also blocking https://github.com/sensslen/nuget-license from upgrading to .net 9 (see https://github.com/sensslen/nuget-license/actions/runs/11852251051/job/33030084204?pr=110) |
Describe the bug
When there is a project targeting .NET Framework on a .sln and
dotnet format style xxx.sln
is invoked, an exception is raised aboutMicrosoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe
which could not be found in the sdkdotnet-format\BuildHost-net472
directory.It seems the .exe has been omitted from the SDK installer.
To Reproduce
dotnet format style MySolution.sln
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: