msbuild可以为多个平台创建.appxbundle吗? [英] Can msbuild create an .appxbundle for multiple platforms?
问题描述
我正在尝试使用包含x86,x64和ARM平台的msbuild为Windows 10 UWP Store应用程序构建.appxbundle.我可以使用创建应用程序Pacakges"向导从VS2015 RTM中执行此操作,但是使用msbuild时出现错误.知道我在做什么错吗?
I'm trying to build an .appxbundle for my Windows 10 UWP Store app using msbuild that contains x86, x64, and ARM platforms. I can do this from VS2015 RTM using the Create App Pacakges wizard, but I get errors when I use msbuild. Any idea what I'm doing wrong?
我的命令行:
msbuild HelloWorld.csproj /p:Configuration=Release;AppxBundle=Always
我遇到的错误:
"E:\TestApps\HelloWorld.csproj" (default target) (1) ->
(_CreateBundle target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(3631,5): error MSB3030: Could not copy the file "E:\TestApps\bin\x64\Release\HelloWorld_1.0.4.0_x64.appx" because it was not found. [E:\TestApps\HelloWorld.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(3631,5): error MSB3030: Could not copy the file "E:\TestApps\bin\ARM\Release\HelloWorld_1.0.4.0_ARM.appx" because it was not found. [E:\TestApps\HelloWorld.csproj]
谢谢, C
推荐答案
尝试在项目文件中指定AppxBundlePlatforms参数,例如:<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>.
Try to specify AppxBundlePlatforms parameter in your project file, something like: <AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>.
这应该与VS2015一起使用.
This should work with VS2015.
这篇关于msbuild可以为多个平台创建.appxbundle吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!