浏览代码

Use return in Select

Wiesław Šoltés 9 年之前
父节点
当前提交
dfa87fe4ba
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      build.cake

+ 7 - 2
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 []
 {