Search code examples
c#.netvisual-studio-2012portable-class-library

Modifying a Portable Class Library project on a machine where some platforms are not installed


I have a PCL project which supports the following platforms:

  • .NET 4.5
  • .NET for Market Apps
  • Windows Phone 8

The problem I encounter is; while I can work with the project on a computer where Windows 8 is installed (along with the Windows Phone 8 SDK), I am unable to build the project at all on any Windows 7 computer without the WinPhone8 SDK. I am also unable to install the WP8 SDK because it requires Windows 8. I can manually edit source files, but I cannot build the PCL project to verify there are no compiler errors.

What would be the "best" practice" for making changes to my PCL project on a computer where some platforms (like WP8) are not installed? Should I manually remove those platforms for that local copy of the project, only?


Solution

  • We've now made this possible in Visual Studio 2012 Update 2. This installs the required Phone 8 support for portable down-level on Windows Vista and Windows 7.

    Grab the latest CTP here: http://www.microsoft.com/en-us/download/details.aspx?id=36833.