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.

Update to newer MSBuild on macOS for .NET6 workload resolver support

See original GitHub issue

Currently on macOS (and presumably Linux) OmniSharp cannot resolve optional workloads in .NET 6.

The version of MSBuild shipping with mono does not have this support (and likely never will). I see that the extension also bundles its own version of MSBuild (which appears to be from VSWin?).

It would be great if this could be updated to align with the MSBuild in VS 16.9 so that the workload resolvers can be enabled to support resolving SDK’s from optional workloads to include additional TFM’s such as net6.0-android and net6.0-ios.

Today, this is achieved by adding a sentinel file to the right location in the SDK, for example:

sdk/6.0.100-preview.1.21103.13/EnableWorkloadResolver.sentinel

You can find more about how to install the SDK workloads for iOS/Android here: https://github.com/dotnet/net6-mobile-samples

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
filipwcommented, Mar 3, 2021

the bundled MSBuild was updated to 16.9 yesterday to match .NET 6 Preview 1 https://github.com/OmniSharp/omnisharp-roslyn/pull/2103

We plan to release a new version of OmniSharp server today

0reactions
cfierro-glbcommented, Apr 29, 2022

Thanks for the link. I’ve subscribed for any updates

Read more comments on GitHub >

github_iconTop Results From Across the Web

macos - .NET 6 - msbuild takes wrong SDK on VS2022 for Mac
Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,38) : error MSB4236: Das angegebene SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator ...
Read more >
MSBuild reference for .NET SDK projects - Microsoft Learn
Reference for the MSBuild properties and items that are understood by the .NET SDK.
Read more >
NuGet Support in Visual Studio for Mac 17.3 - Matt Ward
Changes NuGet 6.2.1 support Improved NuGet restore support for a solution containing classic and SDK style projects Fixed unable to find …
Read more >
Support for the Upcoming .NET SDK 6.0
NET Core SDK for Solution' dialog box is shown: I changed the SDK version to 5.0, like this, and clicked OK: I then...
Read more >
MSBuild.NET.Extras.Sdk 1.4.1 - NuGet
Visual Studio 2017 Update 6 (aka v15.6) includes support for SDK's resolved from NuGet. That makes using the custom SDKs much easier.
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