Nuke.Cola
Loading...
Searching...
No Matches
NukeBuildExtensions.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Runtime.CompilerServices;
5using System.Threading.Tasks;
6using Nuke.Common;
7using Nuke.Common.IO;
8using Nuke.Common.Utilities;
9using Nuke.Common.Utilities.Collections;
10
11namespace Nuke.Cola;
12
13public static class NukeBuildExtensions
14{
15 /// <summary>
16 /// Use this to get the containing folder of the current/calling script file
17 /// </summary>
18 public static AbsolutePath ScriptFolder(this INukeBuild self, [CallerFilePath] string? script = null)
19 => ((AbsolutePath) script!).Parent;
20}
static AbsolutePath ScriptFolder(this INukeBuild self, [CallerFilePath] string? script=null)
Use this to get the containing folder of the current/calling script file.