feat: add Cake build to produce powershell module (#2)
- Add Cake build project - Change to CPM - Package bumps for security bumps - Reorganise solution structure to group harness projects
This commit is contained in:
parent
274d279732
commit
ecb0a20cbb
27 changed files with 267 additions and 58 deletions
23
build/Tasks/CleanTask.cs
Normal file
23
build/Tasks/CleanTask.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using Cake.Common;
|
||||
using Cake.Common.Tools.DotNet;
|
||||
using Cake.Core.Diagnostics;
|
||||
using Cake.Frosting;
|
||||
|
||||
namespace Build.Tasks;
|
||||
|
||||
[TaskName("Clean")]
|
||||
public class CleanTask : FrostingTask<BuildContext>
|
||||
{
|
||||
public override void Run(BuildContext context)
|
||||
{
|
||||
context.DotNetClean(context.PowershellModuleProjectDirectory);
|
||||
|
||||
var outDir = context.FileSystem.GetDirectory(context.PowershellModuleOutputDir);
|
||||
if (outDir.Exists)
|
||||
{
|
||||
outDir.Delete(true);
|
||||
}
|
||||
|
||||
base.Run(context);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue