Remove ios, windows8, and wp8 from Xamarin Forms PCL - nuget 3.0 opt-into error?

后端 未结 8 1968
名媛妹妹
名媛妹妹 2020-12-01 13:30

I\'m working on a Xamarin Forms project. I want to target Android and Windows 10 UWP.

When I try to clean up the PCL by removing \"Windows 8\", \"Windows Phone Si

8条回答
  •  渐次进展
    2020-12-01 14:16

    The solution that worked for me:

    Uninstall Xamarin.Forms:

    Right Click Solution -> Manage NuGet Packages -> Uninstall Xamarin.Forms -> Restart VS
    

    Then remove build platforms:

    Right Click Solution -> Properties -> Build -> under Targeting select Change -> Remove platform(s) -> Restart VS
    

    Reinstall Xamarin.Forms:

    Manage NuGet packages -> Search for Xamarin.Forms -> Install -> Restart VS
    

提交回复
热议问题