Description:
When I use the latest version of Visual Studio 2019 to generate xamarin.ios, it prompts "TypeInitializationException: The type initializer for 'Microsoft.Build.Tasks.Copy' threw an exception.
PlatformNotSupportedException: Operation is not supported on this platform."
and Prompt When I use the simulator to generate Failed to find metadata file "...\ iPhoneSimulator \ Debug \ System. EnterpriseServices. Wrapper.DLL"
build
3.Error: "TypeInitializationException: The type initializer for 'Microsoft.Build.Tasks.Copy' threw an exception. PlatformNotSupportedException: Operation is not supported on this platform."
set "debug" "iPhoneSimulator"
This is a Visual Studio bug reported 2 months ago in 16.6 beta that they just ignored, shipped the 16.6 to everyone and then fixed immediatly in 16.7 preview, wich will come in months...
https://developercommunity.visualstudio.com/content/problem/961282/xamarinios-fails-to-build-with-messagingremoteexce.html
Why they did this is obscure to me... but here we go...
We have to install the preview or go with VS Mac :(
I hope that someday Xamarin (and MAUI) will be decoupled by the VisualStudio updates, this is a huge pain in the....
This is a Visual Studio bug reported 2 months ago in 16.6 beta that they just ignored, shipped the 16.6 to everyone and then fixed immediatly in 16.7 preview, wich will come in months...
https://developercommunity.visualstudio.com/content/problem/961282/xamarinios-fails-to-build-with-messagingremoteexce.html
Why they did this is obscure to me... but here we go...
We have to install the preview or go with VS Mac :(
I hope that someday Xamarin (and MAUI) will be decoupled by the VisualStudio updates, this is a huge pain in the....
Thank you, it seems that I have to use the 16.7 preview to solve my current problem.
This should be fixed in an upcoming service release for Visual Studio16.6. In the meantime, yes, please use 16.7 Preview if you can. Thank you for your patience!