Skip to content

Commit

Permalink
Merge branch 'hotfix/0.6.2'
Browse files Browse the repository at this point in the history
* hotfix/0.6.2:
  (GH-129) When using .NET Global tool, resolve Cake.dll to netcoreapp3.1
  • Loading branch information
gep13 committed Mar 8, 2021
2 parents d39d3b8 + c1e22a1 commit 991ded1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cake.Scripting/CodeGen/CakeScriptGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ private DirectoryPath GetCakePath(DirectoryPath toolPath)
.FirstOrDefault(x => _fileSystem.Exist(x))?.GetDirectory();
if (dotnetCakePath != null)
{
pattern = string.Concat(dotnetCakePath.FullPath, "/.store/**/Cake.dll");
var cakeDllPath = _globber.GetFiles(pattern).FirstOrDefault();
pattern = string.Concat(dotnetCakePath.FullPath, "/.store/**/^{netcoreapp3.1,netcoreapp2.1}/**/Cake.dll");
var cakeDllPath = _globber.GetFiles(pattern).LastOrDefault();

if (cakeDllPath != null)
{
Expand Down

0 comments on commit 991ded1

Please sign in to comment.