Skip to content

Commit

Permalink
Merge pull request #55 from InRule/issue/DEVOPS-175
Browse files Browse the repository at this point in the history
DEVOPS-175:  Force Samples to use VS2019 to build.
  • Loading branch information
Zach committed Sep 16, 2019
2 parents b9ca4ea + 09e36bb commit 371da5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var inruleVersion = Argument("inruleVersion", EnvironmentVariable("InRule_Versio
//////////////////////////////////////////////////////////////////////

FilePathCollection _solutionFiles = GetFiles("./**/*.sln");
MSBuildToolVersion _msbuildVersion = MSBuildToolVersion.VS2019;

// Determine NuGet source feeds.
ICollection<string> _nuGetSources;
Expand Down Expand Up @@ -43,7 +44,7 @@ Task("Clean")
try
{
MSBuild(solutionFile, settings => settings.WithTarget("Clean"));
MSBuild(solutionFile, settings => settings.WithTarget("Clean").UseToolVersion(_msbuildVersion));
}
catch { }
}
Expand Down Expand Up @@ -108,7 +109,7 @@ Task("Build")
Information("-+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+-");
Information("Building " + solutionFile);
Information("-+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+-");
MSBuild(solutionFile, settings => settings.WithTarget("Build"));
MSBuild(solutionFile, settings => settings.WithTarget("Build").UseToolVersion(_msbuildVersion));
}
});

Expand Down

0 comments on commit 371da5c

Please sign in to comment.