forked from ayende/rhino-licensing
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrecipe.cake
58 lines (45 loc) · 2.18 KB
/
recipe.cake
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#load nuget:?package=Chocolatey.Cake.Recipe&version=0.28.4
///////////////////////////////////////////////////////////////////////////////
// ADDINS
///////////////////////////////////////////////////////////////////////////////
// (None)
///////////////////////////////////////////////////////////////////////////////
// RECIPE SETUP
///////////////////////////////////////////////////////////////////////////////
Environment.SetVariableNames();
Func<FilePathCollection> getProjectsToPack = ()=> GetFiles(BuildParameters.SourceDirectoryPath + "/**/*.csproj")
- GetFiles(BuildParameters.RootDirectoryPath + "/tools/**/*.csproj")
- GetFiles(BuildParameters.SourceDirectoryPath + "/**/*.Tests.csproj")
- GetFiles(BuildParameters.SourceDirectoryPath + "/packages/**/*.csproj")
- GetFiles(BuildParameters.SourceDirectoryPath + "/**/*.AdminTool.csproj");
BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
solutionFilePath: "./Rhino.Licensing.sln",
title: "Rhino.Licensing",
repositoryOwner: "chocolatey",
repositoryName: "rhino-licensing",
productName: "Rhino Licensing",
productDescription: "Licensing Framework for .NET.",
productCopyright: "Copyright (c) 2005 - 2009 Ayende Rahien ([email protected]).",
shouldStrongNameOutputAssemblies: false,
shouldObfuscateOutputAssemblies: false,
shouldAuthenticodeSignOutputAssemblies: false,
shouldStrongNameSignDependentAssemblies: false,
shouldRunInspectCode: false,
treatWarningsAsErrors: false,
testDirectoryPath: "./test",
shouldRunDotNetPack: true,
getProjectsToPack: getProjectsToPack,
shouldGenerateSolutionVersionCSharpFile: false);
BuildParameters.PrintParameters(Context);
ToolSettings.SetToolSettings(context: Context);
///////////////////////////////////////////////////////////////////////////////
// PROJECT SPECIFIC TASKS
///////////////////////////////////////////////////////////////////////////////
// (None)
///////////////////////////////////////////////////////////////////////////////
// RUN IT!
///////////////////////////////////////////////////////////////////////////////
Build.RunDotNet();