Closed mhutch closed 5 years ago
đź‘Ť I've seen this too. In addition, VSMac does not apparently know about the NuGet-based SDK resolver (which was in the MSBuild repo, but seems to have been removed recently).
When I try to load a project using a custom SDK (in my case, MSBuild.Sdk.Extras), if I hardcode the package version into the <Project Sdk="">
element, I get the error dialog seen in #4342. If I instead move the version into a global.json file, the project appears in the Solution Explorer, but does not contain any content (no source files, no assembly references, nothing) and is therefore unusable. If I try to build it, it complains of a missing configuration. If I check Ide.log
I still see a number of these exceptions appearing.
When opening an SDK style project in VS for Mac, a number of the following errors are shown in the log:
It looks like the SdkResolverContext passed to the Resolve method has a null MSBuildVersion value.
https://github.com/dotnet/cli/blob/master/src/Microsoft.DotNet.MSBuildSdkResolver/MSBuildSdkResolver.cs#L71 https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/SdkResolution.cs#L60