Microsoft.Build.Locator dependency is not source-buildable
See original GitHub issueBecause 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 ((https://github.com/dotnet/format/blob/main/src/Commands/FormatCommandCommon.cs#L344) for source-built versions of dotnet-format?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top 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 >Microsoft.Build.Locator
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 >
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 Free
Top 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
MicroBuild.Core
is included in source-build-reference-packages.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.