msbuild - 如何告诉 NuGet 使用哪些 MSBuild 可执行文件?

标签 msbuild nuget

NuGet 显然有一些逻辑来确定要使用哪些 MSBuild 可执行文件。有没有办法覆盖这种行为?或者至少有一种方法告诉它使用 x86 MSBuild 而不是 x64?

MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64'.

最佳答案

来自command-line documentation ,您可以在命令行上指定 -MSBuildPath-MSBuildVersion

MSBuildPath (4.0+) Specifies the path of MSBuild to use with the command, taking precedence over -MSBuildVersion.

MSBuildVersion (3.2+) Specifies the version of MSBuild to be used with this command. Supported values are 4, 12, 14, 15. By default the MSBuild in your path is picked, otherwise it defaults to the highest installed version of MSBuild.

关于msbuild - 如何告诉 NuGet 使用哪些 MSBuild 可执行文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49822757/

相关文章:

sdk - MSBuild 找不到 resgen.exe

c# - roslyn 编译器未使用 msbuild 复制到 AspnetCompileMerge 文件夹

nuget - NuGet Gallery 搜索索引应何时更新?

tfs - 尝试使用 TFS 服务时出现 NuGet 包丢失错误

c# - 发现 System.Net.Http 之间存在冲突

visual-studio-2013 - 如何将自定义事件绑定(bind)到 VS 2013 中的 grunt 任务运行器

msbuild - "MSBuild.Community.Tasks.FileUpdate"任务无法加载

iis - 转换时Msbuild不会复制web.config文件

在可移植库上安装 protobuf-net 时出现 nuget 错误

c# - 如何在 .net 标准项目中通过 nuget 获取 stylecop 规则集