ProjectParserExtensions Class

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
CakeAliasCategoryAttribute

Methods

Name Value Summary
GetAssemblyFilePath(CustomProjectParserResult) FilePath
Gets a parsed projects output assembly path
static
GetAssemblyFilePaths(CustomProjectParserResult) FilePath[]
Gets a parsed projects output assembly paths for mulit-targeting projects
static
GetDotNetCliToolReference(CustomProjectParserResult, string) DotNetCliToolReference
Gets a project DotNetCliToolReference
static
GetExtension(CustomProjectParserResult) string
Returns the parsed projects output assembly extension
static
GetOutputAssemblies(ICakeContext, FilePath, string, string) IEnumerable<FilePath>
Gets the output assembly paths for solution or project files, for a specific build configuration
static
GetOutputAssemblies(ICakeContext, FilePath, string) IEnumerable<FilePath>
Gets the output assembly paths for solution or project files, for a specific build configuration
static
GetPackage(CustomProjectParserResult, string, string) PackageReference
Gets a project package reference
static
GetProjectAssemblies(ICakeContext, FilePath, string, string) FilePath[]
Gets the output assembly path for a project file, for a specific build configuration
static
GetProjectAssemblies(ICakeContext, FilePath, string) FilePath[]
Gets the output assembly path for a project file, for a specific build configuration
static
GetProjectAssembly(ICakeContext, FilePath, string) FilePath
Gets the output assembly path for a project file, for a specific build configuration
static
GetProjectProperty(CustomProjectParserResult, string) string
Gets any project property by name. Useful for getting non-standard properties in the CustomProjectParserResult type
static
GetReference(CustomProjectParserResult, string) ProjectAssemblyReference
Gets a project assembly reference by name or alias
static
GetSolutionAssemblies(ICakeContext, FilePath, string, string) IEnumerable<FilePath>
Gets the output assembly paths for a solution file, for a specific build configuration
static
GetSolutionAssemblies(ICakeContext, FilePath, string) IEnumerable<FilePath>
Gets the output assembly paths for a solution file, for a specific build configuration
static
HasDotNetCliToolReference(CustomProjectParserResult, string) bool
Checks for a DotNet Cli Tool Reference by name
static
HasPackage(CustomProjectParserResult, string, string) bool
Checks for a project package reference by name and optional TargetFramework
static
HasReference(CustomProjectParserResult, string) bool
Checks for a project assembly reference by name or alias
static
IsDotNetCliTestProject(CustomProjectParserResult) bool
Checks if the project is a `dotnet test` compatible project
static
IsExpectoTestProject(CustomProjectParserResult) bool
Checks if the project is an Expecto test compatible project
static
IsFixieTestProject(CustomProjectParserResult) bool
Checks if the project is an fixie test compatible project
static
IsFrameworkTestProject(CustomProjectParserResult) bool
Checks if the project is a pre `dotnet test` compatible project
static
IsFsUnitTestProject(CustomProjectParserResult) bool
Checks if the project is an fsunit test compatible project
static
IsGlobalTool(CustomProjectParserResult) bool
Checks if the project is for a global tool
static
IsLibrary(CustomProjectParserResult) bool
Checks if the project is a library
static
IsMSTestProject(CustomProjectParserResult) bool
Checks if the project is an MSTest compatible project
static
IsNUnitTestProject(CustomProjectParserResult) bool
Checks if the project is an NUnit test compatible project
static
IsTestProject(CustomProjectParserResult) bool
Checks if the project is a test compatible project
static
IsType(CustomProjectParserResult, ProjectType) bool
Checks the parsed projects type
static
IsWebApplication(CustomProjectParserResult) bool
Checks if the project is a web application.
static
IsXUnitTestProject(CustomProjectParserResult) bool
Checks if the project is an xunit test compatible project
static
ParseProject(ICakeContext, FilePath, string, string) CustomProjectParserResult
Parses a csproj file into a strongly typed CustomProjectParserResult object using the specified build configuration and target platform
static
ParseProject(ICakeContext, FilePath, string) CustomProjectParserResult
Parses a csproj file into a strongly typed CustomProjectParserResult object using the specified build configuration and default platform (AnyCpu)
static
ParseProjectFile(IFile, string, string) CustomProjectParserResult
Parses a csproj file into a strongly typed CustomProjectParserResult object
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin