我尝试在 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/