From dfa87fe4baf4df1f6f5dc6b0e750cfd51c400138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Fri, 26 Aug 2016 13:37:11 +0200 Subject: [PATCH] Use return in Select --- build.cake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.cake b/build.cake index 14c6d8d1bc..e3507d05fa 100644 --- a/build.cake +++ b/build.cake @@ -261,8 +261,13 @@ var win32CoreLibrariesNuSpecContent = coreLibrariesFiles.Select((file) => { }; }); -var net45RuntimePlatform = new [] {".xml", ".dll"}.Select(libSuffix => - new NuSpecContent { Source = ((FilePath)File("./src/Avalonia.DotNetFrameworkRuntime/bin/"+dirSuffix+"/Avalonia.DotNetFrameworkRuntime" + libSuffix)).FullPath, Target = "lib/net45" }); +var net45RuntimePlatformExtensions = new [] {".xml", ".dll"}; +var net45RuntimePlatform = net45RuntimePlatformExtensions.Select(libSuffix => { + return new NuSpecContent { + Source = ((FilePath)File("./src/Avalonia.DotNetFrameworkRuntime/bin/" + dirSuffix + "/Avalonia.DotNetFrameworkRuntime" + libSuffix)).FullPath, + Target = "lib/net45" + }; +}); var nuspecNuGetSettingsCore = new [] {