我目前在我的机器上安装了 VS2013 和 VS2015。
默认情况下,FAKE F# Make 似乎是使用 VS2015 构建的。
我尝试将 VisualStudioVersion 12.0 传递给我的 MSBuild 任务,但这似乎没有任何效果。
我看到一些文章说要更改 Fake.exe.config 中的 MSBuildPath,但我在该 exe 中没有看到 MSBuildPath。
如何确保它使用 Visual Studio 2012 (12.0) 提供的 MSBuild?
最佳答案
这段代码对我有用:
let toolsVersion = "12.0"
let setParams defaults =
{ defaults with
ToolsVersion = Some(toolsVersion)
}
build setParams solutionPath
|> DoNothing
关于f# - 在 FAKE 构建脚本中使用特定版本的 MSBuild,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27989758/