msbuild - 错误: Building Windows Phone application using MSBuild 64 bit is not supported

标签 msbuild windows-phone-8

我尝试在 NAnt 下的任务帮助下在 VisualStudio2012 下构建我的第一个 Windows Phone 库。

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

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

最佳答案

是的,你是对的。如果您使用 TFS 构建定义,请将 MSBuild 平台更改为 x86。当您在 VS 2012 中编辑构建定义时,选择进程并进入高级设置选项,并将 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)

关于msbuild - 错误: Building Windows Phone application using MSBuild 64 bit is not supported,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17461178/

相关文章:

msbuild - 使用 MSBuild,如何设置文件内容的属性?

c# - 如何动态定义属性并将它们传递给 msbuild 中的另一个目标?

msbuild - 在 csproj 文件中使用 AssemblySearchPaths

c# - 将像素着色器应用于图像

Azure DevOps管道如何设置vcvars64.bat然后从批处理文件调用msbuild.exe?

c# - 生命周期长于页面生命周期的 MVVM 和异步任务

c# - 用户名和密码数据 Windows Phone 8 应用程序

c# - 异常: EOF in Header occuring while extracting zip from isolated storage

c# - 以异步方式以编程方式将 UIElement 添加到 View

.net - 版本控制 .NET 构建