gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:14:59 26 4
gpt4 key购买 nike

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

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

编辑:

试用API不是我们的选择。我们已经考虑过了,但是决定不使用它。

最佳答案

我创建了基于当前配置名称的预构建事件。此事件将替换解决方案中的应用程序配置(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

关于visual-studio-2010 - 使用相同的Visual Studio解决方案部署多个WP7应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5300565/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com