forked from chuongmep/CadPythonShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.Compile.cs
More file actions
24 lines (23 loc) · 800 Bytes
/
Build.Compile.cs
File metadata and controls
24 lines (23 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Nuke.Common;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.MSBuild;
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
internal partial class Build
{
private Target Compile => _ => _
.TriggeredBy(Cleaning)
.Executes(() =>
{
var configurations = GetConfigurations(BuildConfiguration, InstallerConfiguration);
configurations.ForEach(configuration =>
{
MSBuild(s => s
.SetTargets("Rebuild")
.SetProcessToolPath(MsBuildPath.Value)
.SetConfiguration(configuration)
.SetVerbosity(MSBuildVerbosity.Minimal)
.DisableNodeReuse()
.EnableRestore());
});
});
}