Skip to content

Commit

Permalink
Don't include pre-releases, add logging similar to VS2017
Browse files Browse the repository at this point in the history
  • Loading branch information
csmager committed Mar 15, 2019
1 parent e4bc20a commit 84b3d72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/Fake.DotNet.MSBuild/MSBuild.fs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module private MSBuildExeFromVsWhere =
open System.Diagnostics

let private getAllVsPath () =
VsInstances.getWithPackage "Microsoft.Component.MSBuild" true
VsInstances.getWithPackage "Microsoft.Component.MSBuild" false
|> List.map (fun vs -> vs.InstallationPath)

let private getAllMsBuildPaths vsPath =
Expand Down Expand Up @@ -245,6 +245,8 @@ module private MSBuildExe =
Trace.traceFAKE "If you encounter msbuild errors make sure you have copied the required SDKs, see https://github.com/Microsoft/msbuild/issues/1697"
elif foundExe.Contains @"\2017\" then
Trace.logVerbosefn "Using msbuild of VS2017 (%s), if you encounter build errors make sure you have installed the necessary workflows!" foundExe
elif foundExe.Contains @"\2019\" then
Trace.logVerbosefn "Using msbuild of VS2019 (%s), if you encounter build errors make sure you have installed the necessary workflows!" foundExe
foundExe

/// A type for MSBuild task parameters
Expand Down

0 comments on commit 84b3d72

Please sign in to comment.