加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

错误:不支持使用MSBuild 64位构建Windows Phone应用程序

发布时间:2020-12-14 04:38:09 所属栏目:Windows 来源:网络整理
导读:我尝试使用NAnt下的任务帮助在VisualStudio2012下构建我的第一个 Windows手机库. error : Building Windows Phone application using MSBuild 64 bit is not supported. 我是否应该使用32位版本的MSBuild,对于WindowsPhone 7项目? 解决方法 是的,你是对的.
我尝试使用NAnt下的任务帮助在VisualStudio2012下构建我的第一个 Windows手机库.

error : Building Windows Phone application using MSBuild 64 bit is
not supported.

我是否应该使用32位版本的MSBuild,对于WindowsPhone 7项目?

解决方法

是的,你是对的.如果您使用的是TFS构建定义,请将MSBuild平台更改为x86.在VS 2012中编辑构建定义时,选择Process并进入Advanced Settings选项并将MSBuild Platform下拉列表从Auto更改为x86.当使用32位版本的MSBuild时,所有这些32位工具都可以毫无问题地生成Windows Phone 8库.

要么
如果你通过cmd使用MSBuild:

“C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe”而不是“C:/WINDOWS/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe”(/ p:PlatformTarget = x86)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读