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

后端 未结 8 1967
名媛妹妹
名媛妹妹 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:13

    For my initial prototype I didn't want to waste time on another platforms; so:

    1. I started a new solution - "Blank App (Xamarin Forms Portable)"
    2. I used PackageManager to remove ALL packages from all projects
    3. I changed the Project Targets to exclude any Windows Mobile apps (it wanted to keep Windows 8.1; I think this was the .NET inclusion I wanted)
    4. I removed the 3 Windows projects
    5. I used PackageManager to readd "Xamarin.Forms" to all remaining projects - and it automatically added all the other packages that existed at startup

    Now my solution is only (really) targeting Android and iOS ....

提交回复
热议问题