Class CustomDotNetCliToolchainBuilder
Inheritance
CustomDotNetCliToolchainBuilder
Assembly: BenchmarkDotNet.dll
public abstract class CustomDotNetCliToolchainBuilder
Fields
Declaration
protected string customDotNetCliPath
Field Value
Declaration
protected string displayName
Field Value
Declaration
protected readonly Dictionary<string, string> Feeds
Field Value
Declaration
protected string runtimeFrameworkVersion
Field Value
Declaration
protected string runtimeIdentifier
Field Value
Declaration
protected bool useNuGetClearTag
Field Value
Declaration
protected bool useTempFolderForRestore
Field Value
Methods
it allows you to define an additional NuGet feed, you can seal the feeds list by using the UseNuGetClearTag() method
Declaration
public CustomDotNetCliToolchainBuilder AdditionalNuGetFeed(string feedName, string feedAddress)
Parameters
Type |
Name |
Description |
String |
feedName |
the name of the feed, will be used in the auto-generated NuGet.config file
|
String |
feedAddress |
the address of the feed, will be used in the auto-generated NuGet.config file
|
Returns
Declaration
public CustomDotNetCliToolchainBuilder DisplayName(string newDisplayName)
Parameters
Type |
Name |
Description |
String |
newDisplayName |
the name of the toolchain to be displayed in results
|
Returns
Declaration
public CustomDotNetCliToolchainBuilder DotNetCli(string newCustomDotNetCliPath)
Parameters
Type |
Name |
Description |
String |
newCustomDotNetCliPath |
if not provided, the one from PATH will be used
|
Returns
Declaration
protected string GetTargetFrameworkMoniker()
Returns
Declaration
public CustomDotNetCliToolchainBuilder RuntimeFrameworkVersion(string newRuntimeFrameworkVersion)
Parameters
Type |
Name |
Description |
String |
newRuntimeFrameworkVersion |
optional, when set it's copied to the generated .csproj file
|
Returns
Declaration
public CustomDotNetCliToolchainBuilder RuntimeIdentifier(string newRuntimeIdentifier)
Parameters
Type |
Name |
Description |
String |
newRuntimeIdentifier |
if not provided, portable OS-arch will be used (example: "win-x64", "linux-x86")
|
Returns
Declaration
public CustomDotNetCliToolchainBuilder TargetFrameworkMoniker(string targetFrameworkMoniker)
Parameters
Type |
Name |
Description |
String |
targetFrameworkMoniker |
TFM, example: netcoreapp2.1
|
Returns
Declaration
public abstract IToolchain ToToolchain()
Returns
emits clear tag in the auto-generated NuGet.config file
Declaration
public CustomDotNetCliToolchainBuilder UseNuGetClearTag(bool value)
Parameters
Type |
Name |
Description |
Boolean |
value |
|
Returns
Declaration
public CustomDotNetCliToolchainBuilder UseTempFolderForRestore(bool value)
Parameters
Type |
Name |
Description |
Boolean |
value |
|
Returns