In Visual Studio Update 2 How Can I Disable PCL Automatically Targeting Windows Phone 8 When I've Selected Windows 8 RRS feed

  • Question

  • Prior to Visual studio update 2 I could create a Portable Class Library PCL that targeted .Net Framework 4 or 4.5 and also Windows 8.

    After the update Windows Phone 8.1 is automatically targeted when you select Windows 8.

    Problem I have is Entity Framework is not compatible with Windows Phone, so previously created PCL targeting .Net Framework and windows 8 that included Entity Framework nuget package no longer builds.

    • Edited by Argyle99 Tuesday, May 27, 2014 1:49 PM
    Tuesday, May 27, 2014 1:49 PM


  • Are you asking how to get the PCL to un-target something when a certain build is happening?

    If so, I recommend that you create another PCL with the targets you do want .  (Do you even need a PCL then?) and link all the files from the first PCL into the second.

    AFAIK, you can't have a PCL change it's framework targets on the fly.

    Darin R.

    Tuesday, May 27, 2014 3:22 PM