diff --git a/build/shade/_dotnet-build.shade b/build/shade/_dotnet-build.shade index ea59626..d65e4bb 100644 --- a/build/shade/_dotnet-build.shade +++ b/build/shade/_dotnet-build.shade @@ -15,9 +15,7 @@ default build_options=' ${E("KOREBUILD_DOTNET_BUILD_OPTIONS")}' default framework = null @{ - var projectFolder=Path.GetDirectoryName(projectFile); - - var dotnetArgs=string.Format("build{0} {1} --configuration {2}", build_options, projectFolder, configuration); + var dotnetArgs=string.Format("build{0} {1} --configuration {2}", build_options, projectFile, configuration); if (!string.IsNullOrEmpty(framework)) { diff --git a/build/shade/_k-standard-goals.shade b/build/shade/_k-standard-goals.shade index 8109f97..96d4749 100644 --- a/build/shade/_k-standard-goals.shade +++ b/build/shade/_k-standard-goals.shade @@ -141,14 +141,12 @@ default PACKAGELIST_JSON_FILENAME = 'NuGetPackageVerifier.json' #build-test target='compile' if='Directory.Exists("test") && !BuildSrcOnly' @{ - var projectFiles = Files.Include("test/*/project.json").ToList(); - projectFiles.ForEach(projectFile => DotnetBuild(projectFile, Configuration, BuildFramework)); + DotnetBuild("test/*/project.json", Configuration, BuildFramework); } #build-samples target='compile' if='Directory.Exists("samples") && !BuildSrcOnly' @{ - var projectFiles = Files.Include("samples/*/project.json").ToList(); - projectFiles.ForEach(projectFile => DotnetBuild(projectFile, Configuration, BuildFramework)); + DotnetBuild("samples/*/project.json", Configuration, BuildFramework); } #native-compile target='compile' if='!IsLinux && Directory.Exists(Path.Combine(BASE_DIR, "src"))'