在 VS2015 RC 中打开时,无法在 VS 2013 解决方案中加载任何便携式 Class 库项目

Cannot load any Portable Class Library projects in VS 2013 solution, when it is opened in VS2015 RC

当我尝试加载任何便携式 Class Library (Universal Windows 8.1 Project) 时,我看到错误 "TargetPlatformIdentifier is not supported。一个或多个 'Windows' 个项目 <TargetPlatformIdentifier> 不等于 'Windows'。

添加 TargetPlatformIdentifier 键没有帮助。项目看起来是 VS2015 RC.

中的默认 PCL 项目

我在 visual studio 2015 的最终版本中遇到了类似的错误。我通过

解决了这个问题
  1. 删除 visual studio 2013 项目。
  2. 我在 Visual Studio 2015 目录中创建了一个与旧库同名的新便携式 class 库。
  3. 在 windows 资源管理器中,我将源文件从旧项目复制到新项目中。
  4. 在 visual studio select 项目中,单击解决方案资源管理器顶部的 "Show All Files" 按钮。
  5. 在您的新项目中包含您的源文件。
  6. 建造

应该可以了。

将 .csproj 文件中的 ProjectTypeGuids 属性 更改为 VS2015 PCL 模板 ProjectTypeGuids 属性 中的值会有所帮助。