2015-09-09 40 views
3

我正在尝试使用包含x86,x64和ARM平台的msbuild为我的Windows 10 UWP Store应用程序构建.appxbundle。我可以使用Create App Pacakges向导从VS2015 RTM执行此操作,但是当我使用msbuild时会出现错误。任何想法我做错了什么?msbuild可以为多个平台创建一个.appxbundle吗?

我的命令行:

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] 

感谢, Ç

回答

3

尝试在您的项目文件中指定AppxBundlePlatforms参数,是这样的:<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>.

这条命ld与VS2015一起工作。

-1

This答案为我工作。我在这里复制它不只是离开仅链接的答案。

MSBuild mysolution.sln /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM" 
相关问题