Skip to content

Commit

Permalink
Release notes and documentation for Options.Create /cc @severisv
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed Jan 12, 2019
1 parent 570e10b commit 79fc8d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Release Notes

## 5.11.2-alpha - tbd
## 5.12.0 - 2019-01-12

* tbd
* NEW: module `Fake.DotNet.Xdt` - https://github.com/fsharp/FAKE/pull/2218
* IMPROVEMENT: DotNet take version into account when determining dotnet cli path - https://github.com/fsharp/FAKE/pull/2220
Usages of the `DotNet` might yield different results than what you would get in the command line to ensure the given version is used.
* DOCUMENTATION: `StreamSpecification` doc improvements - https://github.com/fsharp/FAKE/pull/2222
* DOCUMENTATION: Various improvements to the contributors guide - https://github.com/fsharp/FAKE/pull/2232

## 5.11.1 - 2018-12-07

Expand Down
6 changes: 5 additions & 1 deletion src/app/Fake.DotNet.Cli/DotNet.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module DotNet =
let private findPossibleDotnetCliPaths dotnetCliDir = seq {
let fileName = if Environment.isUnix then "dotnet" else "dotnet.exe"
yield!
Process.findFilesOnPath "dotnet"
ProcessUtils.findFilesOnPath "dotnet"
|> Seq.filter File.Exists
let userInstalldir = defaultUserInstallDir </> fileName
if File.exists userInstalldir then yield userInstalldir
Expand Down Expand Up @@ -499,6 +499,10 @@ module DotNet =
/// NOTE: This field is ignored when UseShellExecute is true.
Environment : Map<string, string>
}

/// Create a default setup for executing the `dotnet` command line.
/// This function tries to take current `global.json` into account and tries to find the correct installation.
/// To overwrite this behavior set `DotNetCliPath` manually (for example to the first result of `ProcessUtils.findFilesOnPath "dotnet"`)
static member Create() = {
DotNetCliPath =
let version = tryGetSDKVersionFromGlobalJson()
Expand Down

0 comments on commit 79fc8d1

Please sign in to comment.