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
Extension methods for parsing msbuild projects (csproj, vbproj, fsproj)
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .Project - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["ProjectParserExtensions"]
class Type type-node
Syntax
public static class ProjectParserExtensions
Attributes
| Type | Description |
|---|---|
| Cake |
Methods
| Name | Value | Summary |
|---|---|---|
| GetAssemblyFilePath |
FilePath |
Gets a parsed projects output assembly path
static
|
| GetAssemblyFilePaths |
FilePath[] |
Gets a parsed projects output assembly paths for mulit-targeting projects
static
|
| Get |
Dot |
Gets a project DotNetCliToolReference
static
|
| GetExtension |
string |
Returns the parsed projects output assembly extension
static
|
| GetOutputAssemblies |
IEnumerable |
Gets the output assembly paths for solution or project files, for a specific build configuration
static
|
| GetOutputAssemblies |
IEnumerable |
Gets the output assembly paths for solution or project files, for a specific build configuration
static
|
| GetPackage |
PackageReference |
Gets a project package reference
static
|
| GetProjectAssemblies |
FilePath[] |
Gets the output assembly path for a project file, for a specific build configuration
static
|
| GetProjectAssemblies |
FilePath[] |
Gets the output assembly path for a project file, for a specific build configuration
static
|
| GetProjectAssembly |
FilePath |
Gets the output assembly path for a project file, for a specific build configuration
static
|
| GetProjectProperty |
string |
Gets any project property by name. Useful for getting non-standard properties in the CustomProjectParserResult type
static
|
| GetReference |
Project |
Gets a project assembly reference by name or alias
static
|
| Get |
IEnumerable |
Gets the output assembly paths for a solution file, for a specific build configuration
static
|
| Get |
IEnumerable |
Gets the output assembly paths for a solution file, for a specific build configuration
static
|
| Has |
bool |
Checks for a DotNet Cli Tool Reference by name
static
|
| HasPackage |
bool |
Checks for a project package reference by name and optional TargetFramework
static
|
| HasReference |
bool |
Checks for a project assembly reference by name or alias
static
|
| Is |
bool |
Checks if the project is a `dotnet test` compatible project
static
|
| IsExpectoTestProject |
bool |
Checks if the project is an Expecto test compatible project
static
|
| IsFixieTestProject |
bool |
Checks if the project is an fixie test compatible project
static
|
| Is |
bool |
Checks if the project is a pre `dotnet test` compatible project
static
|
| IsFsUnitTestProject |
bool |
Checks if the project is an fsunit test compatible project
static
|
| IsGlobalTool |
bool |
Checks if the project is for a global tool
static
|
| IsLibrary |
bool |
Checks if the project is a library
static
|
| IsMSTestProject |
bool |
Checks if the project is an MSTest compatible project
static
|
| IsNUnitTestProject |
bool |
Checks if the project is an NUnit test compatible project
static
|
| IsTestProject |
bool |
Checks if the project is a test compatible project
static
|
| IsType |
bool |
Checks the parsed projects type
static
|
| IsWebApplication |
bool |
Checks if the project is a web application.
static
|
| IsXUnitTestProject |
bool |
Checks if the project is an xunit test compatible project
static
|
| ParseProject |
Custom |
Parses a csproj file into a strongly typed
CustomProjectParserResult object
using the specified build configuration and target platform
static
|
| ParseProject |
Custom |
Parses a csproj file into a strongly typed
CustomProjectParserResult object
using the specified build configuration and default platform (AnyCpu)
static
|
| ParseProjectFile |
Custom |
Parses a csproj file into a strongly typed
CustomProjectParserResult object
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
