使用相同的Visual Studio解决方案部署多个WP7应用程序?

Buj*_*uju 5 deployment visual-studio-2010 xap windows-phone-7

如何使用相同的Visual Studio解决方案部署多个WP7应用程序?为实现这一目标,我需要做些什么改变?更改Xap文件名和程序集GUID和标题无法实现.实际上,VS会使用新标题覆盖旧版本,但不会部署单独的应用程序

背景:我们有一个Lite和Pro应用程序,我希望能够将这两个版本部署到手机上.

编辑:

试用API不适合我们.我们已经考虑过但决定不使用它.

小智 5

我创建了prebuild事件,它基于当前的配置名称.此事件替换解决方案中的应用程序配置(WMAppManifest.xml,SplashScreenImage.jpg).

例:

echo "$(ConfigurationName)"

if "$(ConfigurationName)" == "Lite" goto :copyLite
if "$(ConfigurationName)" == "PRO" goto :copyPro

echo "Unknown Configuration"
goto :end

:copyLite
echo "copy lite"
  copy "$(ProjectDir)Resources\PreBuildEvent\Lite\WMAppManifest.xml" "$(ProjectDir)\Properties\" /y
  copy "$(ProjectDir)SplashScreenImageLite.jpg" "$(ProjectDir)SplashScreenImage.jpg" /y
goto :end

:copyPro
echo "copy pro"
  copy "$(ProjectDir)Resources\PreBuildEvent\Pro\WMAppManifest.xml" "$(ProjectDir)\Properties\" /y
  copy "$(ProjectDir)SplashScreenImagePro.jpg" "$(ProjectDir)SplashScreenImage.jpg" /y

goto :end

:end
Run Code Online (Sandbox Code Playgroud)