Open trampster opened 1 year ago
If I change one of the projects to netstandard2.0 it will build that project, but this isn't a solution as the other projects use 2.1 features.
So for some reason my install doesn't do netstandard2.1 when built with mono, but other macs do it without problem. I checked the mono version with mono --version, and it says "Mono JIT compiler version 6.12.0.188" this is the same as whats on the mac's that work.
I found a work arround. It doesn't work because mono requires an older version of the .net SDK than is installed by vs4mac by default.
Installing .net SDK 6.0.408 makes it work. So this is a installation issue with Visual Studio for Mac which no longer supports classic Xamarin projects out of the box due to this issue.
Describe the bug
In vs4mac with a Xamarin.Forms solution with 'Build with MSBuild on mono' enabled. netstandard2.1 projects fail to build with:
/Users/hughesd/Library/Caches/VisualStudio/17.0/MSBuild/715_3/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(5,5): Error NETSDK1073: The FrameworkReference 'NETStandard.Library' was not recognized (NETSDK1073) (Tait.Threading)
This is affecting me on my new macbook with a fresh install, but we have other macbooks which can build this solution without problem, and our CI machine can also build it. But on my brand new MacBook pro M2 it doesn't work.
To Reproduce
Further technical details
dotnet --info