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.

Microsoft.Build.Locator dependency is not source-buildable

See original GitHub issue

Because the sdk includes the dotnet-format tool in .NET 6.0, dotnet-format needs to be included in source-build. This means all the source dependencies must also be source-built. The Microsoft.Build.Locator dependency is not included in .NET 6.0 source-build and is not something that would be very easy to support because it doesn’t utilize arcade and because of its VS dependencies. Given source-build doesn’t support Windows, is there a way to remove this dependency (( for source-built versions of dotnet-format?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

dseefeldcommented, Oct 14, 2021

MicroBuild.Core is included in source-build-reference-packages.

eerhardtcommented, Oct 14, 2021

just for source build in .NET 6. That would mean the command works very differently between source built versions and binary distributions.

I was suggesting to do this always for the dotnet-format that ships in the .NET SDK - both for Microsoft distributed and source-build. So the different code would be between the OOB dotnet-format NuGet package and the dotnet-format command inbox in the SDK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSBuild 16.0 not finding its own dependent assemblies ...
After a lot of fiddling with different ideas, I ended up writing this workaround based on manual assembly resolution.
Read more >
MSBuildWorkspace: Microsoft.Build assembly problem ...
The Locator solution is good enough for now, but the concept of making the tool's behavior dependent on global machine state is so...
Read more >
An API to locate MSBuild assemblies from an installed Visual Studio location. Use this to ensure that calling the MSBuild API will use...
Read more >
Find and use a version of MSBuild
The .NET Framework version of Microsoft.Build.Locator can only see Visual Studio installations, Visual Studio Build Tools installations, not .
Read more >
MSBuildLocator.Unregister Method (Microsoft.Build.Locator)
This will automatically be called once all supported assemblies are loaded into the current AppDomain and so generally is not necessary to call...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found