arcgis-maps-sdk-dotnet-toolkit icon indicating copy to clipboard operation
arcgis-maps-sdk-dotnet-toolkit copied to clipboard

Cannot build Samples on VSMac due to multi-targetting

Open jawbrey opened this issue 3 years ago • 1 comments

VS Mac will not build the Samples due to multi-targeting. This error is generated during Nuget restore

/usr/local/share/dotnet/sdk/5.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(89,5) : error NETSDK1100: Windows is required to build Windows desktop applications.

jawbrey avatar Nov 22 '21 23:11 jawbrey

Unfortunately, building Toolkit on Mac is currently not supported; you'll need to use Windows. I took some time to try adapting the solution to work on Mac, and couldn't make much progress. Sharing code among UWP, WPF (Framework and .NET 6), Xamarin.Forms, iOS, .NET Standard, and Android is an uncommon scenario, and even Visual Studio on Windows can't handle it very reliably.

I'll make a note to re-test with Visual Studio for Mac 2022 when it is released.

nCastle1 avatar Jan 07 '22 16:01 nCastle1

This is fixed at v200 with updated project structure.

nCastle1 avatar Oct 19 '22 18:10 nCastle1