使用msbuild为(x86 | x64 | ARM)创建.appxbundle [英] Creating .appxbundle using msbuild for (x86|x64|ARM)

查看:205
本文介绍了使用msbuild为(x86 | x64 | ARM)创建.appxbundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用开发人员命令提示符中的msbuild创建.appxbundle 我正在使用下面的命令来创建相同的

i am trying to create .appxbundle using msbuild from developer command prompt i am using below command to create the same

MSBuild KitabooBookshelf.sln /p:Configuration=Release;OutDir=..\Release\;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM"

,但低于处理器体系结构错误.尽管许多人都遇到过类似的问题,但我没有找到与该问题相关的有用资源.我是Windows商店应用程序的新手.试图弄清楚我在做什么错了&如何使用msbuild创建.appxbundle

but getting below processor architecture error. I did not find much useful resource related to this issue though many have faced similar issue. I am new to Windows store Application. trying to figure what i am doing wrong & how can i create .appxbundle using msbuild

"E:\ Kitaboo Windows 8.1 6月2日 2015 \ KitabooBookShelf \ KitabooBookshelf.csproj(默认目标)(1) ->

"E:\Kitaboo Windows 8.1 2nd June 2015\KitabooBookShelf\KitabooBookshelf.csproj" (default target) (1) ->

"E:\ Kitaboo Windows 8.1 6月2日 2015 \ DatabaseLibrary \ DatabaseLibrary.csproj(默认目标)(3)->

"E:\Kitaboo Windows 8.1 2nd June 2015\DatabaseLibrary\DatabaseLibrary.csproj" ( default target) (3) ->

(ResolveSDKReferences目标)-> C:\ Program Files (x86)\ MSBuild \ 12.0 \ bin \ Microsoft.Common.CurrentVersion.targe ts(1803,5):错误MSB3779:项目的处理器体系结构 被引用的SDK不支持构建任何CPU" "Microsoft.VCLibs,版本= 1 2.0".请考虑更改项目的目标处理器体系结构(在Visual Studio中,可以通过 配置管理器)到e支持的架构上 SDK:"x86,x64,ARM". [E:\ Kitaboo Windo ws 8.1 6月2日 2015 \ DatabaseLibrary \ DatabaseLibrary.csproj]

(ResolveSDKReferences target) -> C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe ts(1803,5): error MSB3779: The processor architecture of the project being buil t "Any CPU" is not supported by the referenced SDK "Microsoft.VCLibs, Version=1 2.0". Please consider changing the targeted processor architecture of your proj ect (in Visual Studio this can be done through the Configuration Manager) to on e of the architectures supported by the SDK: "x86, x64, ARM". [E:\Kitaboo Windo ws 8.1 2nd June 2015\DatabaseLibrary\DatabaseLibrary.csproj]

C:\ Program文件 (x86)\ MSBuild \ 12.0 \ bin \ Microsoft.Common.CurrentVersion.targe ts(1803,5):错误MSB3779:项目的处理器体系结构 被引用的SDK不支持构建任何CPU" "SQLite.WinRT81,版本= 3.9 .2".请考虑更改 项目的目标处理器体系结构(在Visual Studio中) 这可以通过配置管理器来完成) SDK支持的体系结构:"x86,x64,ARM".

C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe ts(1803,5): error MSB3779: The processor architecture of the project being buil t "Any CPU" is not supported by the referenced SDK "SQLite.WinRT81, Version=3.9 .2". Please consider changing the targeted processor architecture of your proje ct (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, x64, ARM".

[E:\ Kitaboo Window s 8.1 6月2日 2015 \ DatabaseLibrary \ DatabaseLibrary.csproj]

[E:\Kitaboo Window s 8.1 2nd June 2015\DatabaseLibrary\DatabaseLibrary.csproj]

推荐答案

我终于花了几个小时来解决这个问题

I am finally spending few hours able to solve this issue

下面是创建x86,ARM和x64捆绑软件的命令,但它为三个不同的体系结构分别创建了三个.Appx文件. msbuild不会创建单个包.appxbundle

Below is the command to create x86, ARM ,x64 bundle but it creates three .Appx file each for three different architecture. msbuild does not create single bundle .appxbundle

E:\Project Dir>MSBuild Project.sln /p:Configuration=Release;OutDir=..\Release\;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM

由于"Any CPU",我在上面遇到了体系结构错误,我从.csproj和.sln文件&中删除了所有"Any CPU"实例.用x86替换了它们.并在命令上方运行,我能够为x86,ARM,x64创建.appx捆绑包.在执行上面的msbuild命令之前,请不要忘记删除Bin&.单击主项目上的显示全部"按钮后,将在项目中找到obj文件夹.

Architecture error which i had above due to "Any CPU" i removed all "Any CPU" instance from .csproj and .sln file & replaced them with x86. and run above command i was able to creae .appx bundle for x86, ARM, x64. before running above msbuild command do not forget to remove Bin & obj folders from project which you will find after clicking show all button on main project.

我希望这对遇到类似问题的人有所帮助.

I hope this helps to someone having similar issue.

谢谢

这篇关于使用msbuild为(x86 | x64 | ARM)创建.appxbundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆