Skip to content

Commit d05ad4f

Browse files
committed
Corrected cake file
1 parent db1bbc2 commit d05ad4f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.cake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var nugetRoot = buildResultDir + Directory("nuget");
3131
// Initialization
3232
// ----------------------------------------
3333

34-
Setup(() =>
34+
Setup(_ =>
3535
{
3636
Information("Building version {0} of AngleSharp.Io.", version);
3737
Information("For the publish target the following environment variables need to be set:");
@@ -90,13 +90,14 @@ Task("Copy-Files")
9090
.IsDependentOn("Build")
9191
.Does(() =>
9292
{
93-
var target = nugetRoot + Directory("lib") + Directory("net46");
93+
var framework = "netstandard2.0";
94+
var target = nugetRoot + Directory("lib") + Directory(framework);
9495

9596
CreateDirectory(target);
9697
CopyFiles(new FilePath[]
9798
{
98-
buildDir + File("AngleSharp.Io.dll"),
99-
buildDir + File("AngleSharp.Io.xml")
99+
buildDir + Directory(framework) + File("AngleSharp.Io.dll"),
100+
buildDir + Directory(framework) + File("AngleSharp.Io.xml")
100101
}, target);
101102

102103
CopyFiles(new FilePath[] { "src/AngleSharp.Io.nuspec" }, nugetRoot);

0 commit comments

Comments
 (0)