-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (27 loc) · 1.3 KB
/
Program.cs
File metadata and controls
32 lines (27 loc) · 1.3 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
// Copyright (c) SharpCrafters s.r.o. All rights reserved. Released under the MIT license.
using BuildGitHubTestProduct;
using PostSharp.Engineering.BuildTools;
using PostSharp.Engineering.BuildTools.Build;
using PostSharp.Engineering.BuildTools.Build.Model;
using PostSharp.Engineering.BuildTools.Build.Publishers;
using PostSharp.Engineering.BuildTools.Build.Solutions;
using PostSharp.Engineering.BuildTools.Dependencies.Model;
using Spectre.Console.Cli;
var product = new Product( TestDependencies.GitHub )
{
ProductName = "PostSharp.Engineering.Test.GitHub",
Solutions = new Solution[] { new DotNetSolution( "src\\PostSharp.Engineering.Test.GitHub.sln" ) },
PublicArtifacts = Pattern.Create( "PostSharp.Engineering.Test.GitHub.$(PackageVersion).nupkg" ),
Dependencies = new[] { Dependencies.PostSharpEngineering, TestDependencies.TestProduct },
Configurations = Product.DefaultConfigurations
.WithValue( BuildConfiguration.Public, new BuildConfigurationInfo(
MSBuildName: "Release",
PublicPublishers: new Publisher[]
{
new TestPublisher( Pattern.Create( "*.nupkg" ) ),
new MergePublisher()
} ) )
};
var commandApp = new CommandApp();
commandApp.AddProductCommands( product );
return commandApp.Run( args );