Nuke.Cola
Loading...
Searching...
No Matches
Importable.cs
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Linq;
4
using
System.Threading.Tasks;
5
using
Nuke.Common.IO;
6
7
namespace
Nuke.Cola.BuildPlugins
;
8
9
/// <summary>
10
/// A record for storing compiled build plugin interfaces
11
/// </summary>
12
/// <param name="Interface">.NET type of the build interface</param>
13
/// <param name="Source">Original source path of the plugin (can be either a script or a project file)</param>
14
/// <param name="ImportViaSource">
15
/// When true the intermediate script will use `#load "<source>"` directive instead of `#r "<dll>"`
16
/// when importing the build plugin. This was only intended to be used with C# script plugins.
17
/// </param>
18
public
record
class
Importable
(Type Interface, AbsolutePath? Source =
null
,
bool
ImportViaSource =
false
)
19
{
20
public
override
string
ToString() => Source ==
null
21
?
""
22
: ImportViaSource
23
? Source.ToString()
24
: Interface.Assembly.Location;
25
}
Nuke.Cola.BuildPlugins
Definition
BuildContext.cs:7
Nuke.Cola.BuildPlugins.Importable
record class Importable(Type Interface, AbsolutePath? Source=null, bool ImportViaSource=false)
A record for storing compiled build plugin interfaces.
Definition
Importable.cs:18
md.Nuke.Cola
BuildPlugins
Importable.cs
Generated by
1.12.0