-
-
Notifications
You must be signed in to change notification settings - Fork 789
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (35 loc) · 1.65 KB
/
Copy pathProgram.cs
File metadata and controls
39 lines (35 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Build
{
using System;
using Cake.AzurePipelines.Module;
using Cake.Frosting;
using Cake.GitHubActions.Module;
/// <summary>Runs the build process.</summary>
public class Program
{
/// <summary>The version of the Microsoft.TestPlatform NuGet package.</summary>
internal const string MicrosoftTestPlatformVersion = "18.9.0";
/// <summary>The version of the NUnit3TestAdapter NuGet package.</summary>
internal const string NUnit3TestAdapterVersion = "6.3.0";
/// <summary>Runs the build process.</summary>
/// <param name="args">The arguments from the command line.</param>
/// <returns>A status code.</returns>
public static int Main(string[] args)
{
return new CakeHost()
.UseContext<Context>()
.UseLifetime<Lifetime>()
.UseWorkingDirectory("..")
.UseModule<AzurePipelinesModule>()
.UseModule<GitHubActionsModule>()
.InstallTool(new Uri("dotnet:?package=GitVersion.Tool&version=6.7.0"))
.InstallTool(new Uri("nuget:?package=Microsoft.TestPlatform&version=" + MicrosoftTestPlatformVersion))
.InstallTool(new Uri("nuget:?package=NUnit3TestAdapter&version=" + NUnit3TestAdapterVersion))
.InstallTool(new Uri("nuget:?package=NuGet.CommandLine&version=7.3.1"))
.Run(args);
}
}
}