【问题标题】:error : Building Windows Phone application using MSBuild 64 bit is not supported错误:不支持使用 MSBuild 64 位构建 Windows Phone 应用程序
【发布时间】:2013-07-04 11:21:34
【问题描述】:

我尝试借助 NAnt 下的任务在 VisualStudio2012 下构建我的第一个 windows phone 库。

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

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

【问题讨论】:

    标签: msbuild windows-phone-8


    【解决方案1】:

    是的,你是对的。如果您使用的是 TFS 构建定义,请将 MSBuild 平台更改为 x86。在 VS 2012 中编辑构建定义时,选择 Process 并进入 Advanced Settings 选项并从 Auto 更改 MSBuild Platform 下拉列表到 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)

    【讨论】:

    • 谢谢!很抱歉这些愚蠢的问题,但我是 Windows Phone 开发的新手。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 2018-10-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多