dotnet format fails to locate msbuild
See original GitHub issueRunning dotnet format
on a recent build from main fails with
Unable to locate MSBuild. Ensure the .NET SDK was installed with the official installer.
This is a regression source-build tests caught. I was able to reproduce this with the Microsoft build as well.
This last passed CI on https://github.com/dotnet/installer/commit/319773e868fead7c3bedba92f894594d1d81ff59. There were a few commits after that before the next failing CI run on https://github.com/dotnet/installer/commit/d117d579c56308c490d40e0860b6c926c08d5ae3.
Related to https://github.com/dotnet/source-build/issues/3004
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:9 (7 by maintainers)
Top Results From Across the Web
How to use dotnet format to format the whole project inside ...
I thinks the moment the format encounters error, it is throwing unrecognized command or argument. then prompts the help section for the user...
Read more >NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Troubleshoot .NET tool usage issues
Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET program, but dotnet-xyz does...
Read more >MSBuild and Visual Studio format for diagnostic messages
In this article. When a tool is executed that outputs some text, MSBuild examines the text for errors and warnings.
Read more >dotnet format command - .NET CLI
The MSBuild project or solution to run code formatting on. If a project or solution file is not specified, MSBuild searches the current...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vmandic: See https://github.com/dotnet/format/issues/1785
CC @jmarolf @JoeRobich for dotnet format.
@MichaelSimons see https://github.com/dotnet/sdk/blob/d194ac295528af5f9b6ffafc335435ef89efed21/CODEOWNERS#L29