Skip to content

Commit dec09e1

Browse files
committed
split build and pack to reduce build time
1 parent c3e3416 commit dec09e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SimpleExec/SimpleExec.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>Runs external commands.</Description>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6+
<IsPackable>true</IsPackable>
77
<PackageIcon>simple-exec.png</PackageIcon>
88
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
99
<PackageProjectUrl>https://github.com/adamralph/simple-exec</PackageProjectUrl>

targets/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
Target("test", dependsOn: ["build",], () => RunAsync("dotnet", "test --configuration Release --no-build"));
99

10-
Target("default", dependsOn: ["format", "test",]);
10+
Target("pack", dependsOn: ["build",], () => RunAsync("dotnet", "packop --configuration Release --no-build"));
11+
12+
Target("default", dependsOn: ["format", "test", "pack",]);
1113

1214
await RunTargetsAndExitAsync(args, ex => ex.GetType() == ExitCodeExceptionType);

0 commit comments

Comments
 (0)