powershell - Powershell 和 PSake 从哪里执行 msbuild?

标签 powershell msbuild visual-studio-2013 psake

在进行构建自动化时,我遇到了一个问题。随着 Visual Studio 2013 的升级,MSBuild 的路径已按照此处的描述移动 http://timrayburn.net/blog/visual-studio-2013-and-msbuild/

我已经更新了我的系统路径以指向 msbuild 的这个新位置。使用常规的 cmd 提示 msbuild 解析就好了。但是在 powershell 中运行我的脚本,它似乎仍然选择旧的,并显示链接中描述的问题。如何查看和更改 powershell 和 psake 从中获取 msbuild 的位置,以便我可以指向预期的版本?

最佳答案

PSake 在一个盒子上支持更多的 MSBuild 版本。您可以选择版本和平台,例如。 4.0x64framework指示。 MSBuild 工具的路径不是取自 $env:path但被计算。它使用注册表来查找正确的路径。

自 PSake 4.3 起支持 VS 2013 和 MSBuild 工具

关于powershell - Powershell 和 PSake 从哪里执行 msbuild?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20999761/

相关文章:

powershell - 需要脚本来查找服务器激活状态

c# - 如何在解决方案级别使用 Microsoft.Net.Compilers?

visual-studio - Visual Studio 中是否有 "ZIP project"?

c++ - 分发使用 Visual Studio 2013 编译的 exe 文件

c# - 如何将 C# 代码转换为 PowerShell 脚本?

powershell - Appfabric 从集群中删除主机

c++ - 为什么这个公共(public)成员函数不能在类内声明的私有(private)结构成员上调用 decltype?

c# - 在windows phone项目中使用可移植类库

Python Cmd/Powershell 错误 "Traceback (Most recent call last)"

c# - Visual Studio 不触发 MSBuild