question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet format fails to locate msbuild

See original GitHub issue

Running 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:closed
  • Created a year ago
  • Reactions:2
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found