This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Gets a project DotNetCliToolReference
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .Project - Containing Type
- Project
Parser Extensions
Syntax
public static DotNetCliToolReference GetDotNetCliToolReference(this CustomProjectParserResult projectParserResult, string cliToolReferenceName)
Examples
Get the XUnit Cli tool reference
CustomParseProjectResult project
= ParseProject(new FilePath("test.csproj"), configuration: "Release", platform: "x86");
DotNetCliToolReference ref = project.GetDotNetCliToolReference("dotnet-xunit");
string xUnitVersion = ref.Version;
Parameters
Name | Type | Description |
---|---|---|
projectParserResult | Custom |
the parsed project |
cliToolReferenceName | string | the package name |
Return Value
Type | Description |
---|---|
Dot |
The dotnet cli tool reference if found |