合并Visual Studio Windows Store App和Windows Phone App解决方案

Merging Visual Studio Windows Store App and Windows Phone App solutions

本文关键字:Windows App Phone 解决方案 Store Visual Studio 合并      更新时间:2023-09-26

我创造了一款HTML5 (canvas+js)游戏在Windows 8.1中使用Visual Studio Express 2013对于Windows Phone 8使用Visual Studio Express 2012和Windows Phone SDK 8。

我如何将这些解决方案合并为一个,或者从一开始就创建一个新的解决方案,这样两个项目就可以共享大多数图像,声音和javascript文件。我想使用一组文件,因为这些文件大多是相同的,并且同时为两个平台构建。

有可能吗?我甚至愿意购买Visual Studio Pro 2013来完成这项工作。也可以在TFS中使用吗?

简短的回答:不,你不能合并它们。

比较简单的方法是使用add -as- link技术在两个项目上共享文件(参见KB 306234)。为了您的安全起见,您应该将共享文件组织在各自的文件夹中,例如
'SolutionFolder
   'Shared
   'WinPhone
   'WinApp

请注意,当您添加一个文件时,必须将它添加到两个项目中。