命令行 – 在命令行上构建Windows 8 Phone应用程序
发布时间:2020-12-14 02:09:50 所属栏目:Windows 来源:网络整理
导读:我目前正在将现有的跨平台框架移植到 Windows Phone 8. 构建过程完全自动化,我们正在使用坚如磐石的CI系统. 我可以从Visual Studio(Express 2012)构建和部署Windows Phone 8示例, 但现在我需要将它集成到我们的构建脚本中. 有没有人通过命令行成功构建(和部
我目前正在将现有的跨平台框架移植到
Windows Phone 8.
构建过程完全自动化,我们正在使用坚如磐石的CI系统. 我可以从Visual Studio(Express 2012)构建和部署Windows Phone 8示例, 有没有人通过命令行成功构建(和部署)Win Phone 8应用程序? 如果有,怎么样? 任何提示都是受欢迎的. 解决方法
我使用以下bat文件来构建WP7代码(ant自动化).它可能对你有所帮助.
运行build.bat C:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild.exe build.xml /t:BuildAndCopy /p:Revision=123 其中build.xml就像(构建本身属于BuildAll目标) <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="C:Program Files (x86)MSBuildMSBuildCommunityTasksMSBuild.Community.Tasks.Targets"/> <PropertyGroup> <Major>1</Major> <Minor>0</Minor> <Build>0</Build> <Revision>x</Revision> <OutputPath>Build&;/OutputPath> <OutputPathDebug>..BuildDebug&;/OutputPathDebug> <OutputPathRelease>..Build&;/OutputPathRelease> </PropertyGroup> <Target Name="BuildAll" DependsOnTargets="Clean; Version"> <msbuild Projects="SomeApp.sln" Properties="Configuration=Release;OutputPath=$(OutputPathRelease)"/> <msbuild Projects="SomeApp.sln" Properties="Configuration=Debug;OutputPath=$(OutputPathDebug)"/> </Target> <Target Name="Clean"> <RemoveDir Directories="$(OutputPath)" Condition="Exists('$(OutputPath)')"/> <MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')"/> </Target> <Target Name="Version"> <Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/> <XmlUpdate Namespace="" XmlFileName="WindowsPhonePropertiesWMAppManifest.xml" XPath="//App[@Version]//@Version" Value="$(Major).$(Minor).$(Build).$(Revision)"/> </Target> <ItemGroup> <AppFiles Include="$(OutputPath)***.xap"/> </ItemGroup> <Target Name="BuildAndCopy" DependsOnTargets="BuildAll"> <Copy SourceFiles="@(AppFiles)" DestinationFiles="@(AppFiles->'fsPublicprojectsmobileSomeAppWP$(Major).$(Minor).$(Build).$(Revision)%(RecursiveDir)%(Filename)%(Extension)')" /> <Copy SourceFiles="@(AppFiles)" DestinationFiles="@(AppFiles->'fsPublicprojectsmobileSomeAppWPlatest%(RecursiveDir)%(Filename)%(Extension)')" /> </Target> </Project> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 使用CodeBlocks开发Win32用户界面程序
- 如何在用户拒绝一次后再次询问用户使用Geolocation的权限?
- 分析 – Windows脚本主机代码是否有Profiler?
- Windows – 当应用程序失去焦点时,Qt系统托盘上下文菜单仍然
- 在Windows Server中使用IPsec时,“主”模式和“快速”模式有
- windows-server-2003 – 持续磁盘活动 – 如何判断不间断访
- 作为Windows服务运行的Python:OSError:[WinError 6]句柄无
- winapi – 什么是fadvise / madvise等效于Windows?
- 在没有可见控制台窗口的Windows中创建后台进程
- windows配置kafka环境 (依赖zookeeper,kafka内置)