2
votes

I've developed a library as a Portable Class Library, and now I'm finding that I need to make it Windows 8 Store App specific to make use of the Windows.Network namespace. Is there any way to automatically convert the project without completely hacking the .csproj file ?

1
Don't think the PCL project itself can be easily converted. Would it be an alternative to create a new Windows 8 project in your solution and just drag-and-drop all files from the PCL project into the Windows 8 project? Alternatively, create a new Windows 8 project that consumes the PCL project?Anders Gustafsson

1 Answers

1
votes

You can do this in VS 2013 Update 2. If you are OK with targeting Windows 8.1 in your library, just deselect all the other platforms in the targeting dialog. If you need to target Windows 8, there isn't a way to do this directly, but retargeting to Windows 8.1 and then changing the version property in the .csproj file to 8.0 (I think it's TargetPlatformVersion in this case) should probably work.