Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 024de99

Browse files
authored
Clean up integration test for Cake 2.0 (#143)
1 parent 80bc1ae commit 024de99

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

tests/build/build/build.cake

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Task("Build")
55
var solutionFile = data.SourceFolder.CombineWithFilePath("ClassLibrary1.sln");
66
var msBuildLogFilePath = data.OutputFolder.CombineWithFilePath("msbuild.binlog");
77

8-
#if NETCOREAPP
9-
DotNetCoreRestore(solutionFile.FullPath);
8+
DotNetRestore(solutionFile.FullPath);
109

1110
var settings =
1211
new DotNetCoreMSBuildSettings()
@@ -17,24 +16,12 @@ Task("Build")
1716
msBuildLogFilePath.FullPath
1817
);
1918

20-
DotNetCoreBuild(
19+
DotNetBuild(
2120
solutionFile.FullPath,
2221
new DotNetCoreBuildSettings
2322
{
2423
MSBuildSettings = settings
2524
});
26-
#else
27-
NuGetRestore(solutionFile);
28-
29-
var settings =
30-
new MSBuildSettings()
31-
.WithTarget("Rebuild")
32-
.WithLogger(
33-
Context.Tools.Resolve("Cake.Issues.MsBuild*/**/StructuredLogger.dll").FullPath,
34-
"BinaryLogger",
35-
msBuildLogFilePath.FullPath);
36-
MSBuild(solutionFile, settings);
37-
#endif
3825

3926
// Read issues
4027
var readIssuesSettings = new ReadIssuesSettings(data.RepoRootFolder)

0 commit comments

Comments
 (0)