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
Represents the content in an MSBuild project file.
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .Project - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["CustomProjectParserResult"]
class Type type-node
Syntax
public class CustomProjectParserResult
Constructors
| Name | Summary |
|---|---|
| Custom |
Properties
| Name | Value | Summary |
|---|---|---|
| AssemblyName | string |
Gets the build target assembly name.
|
| Configuration | string |
Gets the build configuration.
|
| Files | ICollection |
Gets the project content files.
CustomProjectFile |
| IsNetCore | bool |
True if the project is a net core compatible project
|
| IsNetFramework | bool |
True if the project is a net framework compatible project
|
| IsNetStandard | bool |
True if the project is a net standard compatible project
|
| Is |
bool |
Whether the project parsed is in the newer VS2017 onwards format or the legacy pre 2017 format
|
| NetCore | NetCoreProject |
Contains properties specific to net core projects. See
NetCoreProject
|
| OutputPath | DirectoryPath |
Gets the first compiler artifact output path.
Use OutputPaths for multi-targeting libraries
|
| OutputPaths | DirectoryPath[] |
Gets the compiler artifact output paths.
|
| OutputType | string |
Gets the compiler output type, i.e.
Exe/Library.
|
| PackageReferences | ICollection |
The project package references. A collection of
PackageReference
|
| Platform | string |
Gets the target platform.
|
| ProjectFilePath | FilePath |
The path for the parsed project file
|
| ProjectGuid | string |
Gets the unique project identifier.
|
| ProjectReferences | ICollection |
Gets the references to other projects.
ProjectReference |
| ProjectTypeGuids | string[] |
Gets the project type identifiers.
|
| ProjectXml | XDocument |
The project file xml source
|
| References | ICollection |
Gets the references.
ProjectAssemblyReference |
| RootNameSpace | string |
Gets the default root namespace.
|
| Target |
string |
Gets the compiler target framework profile.
|
| Target |
string |
Gets the first compiler target framework version.
|
| Target |
string[] |
Gets the first compiler target framework versions.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| GetAssemblyFilePath |
FilePath |
Gets a parsed projects output assembly path
Requires the Cake.Incubator addin
|
| GetAssemblyFilePaths |
FilePath[] |
Gets a parsed projects output assembly paths for mulit-targeting projects
Requires the Cake.Incubator addin
|
| Get |
Dot |
Gets a project DotNetCliToolReference
Requires the Cake.Incubator addin
|
| GetExtension |
string |
Returns the parsed projects output assembly extension
Requires the Cake.Incubator addin
|
| GetPackage |
PackageReference |
Gets a project package reference
Requires the Cake.Incubator addin
|
| GetProjectProperty |
string |
Gets any project property by name. Useful for getting non-standard properties in the CustomProjectParserResult type
Requires the Cake.Incubator addin
|
| GetReference |
Project |
Gets a project assembly reference by name or alias
Requires the Cake.Incubator addin
|
| Has |
bool |
Checks for a DotNet Cli Tool Reference by name
Requires the Cake.Incubator addin
|
| HasPackage |
bool |
Checks for a project package reference by name and optional TargetFramework
Requires the Cake.Incubator addin
|
| HasReference |
bool |
Checks for a project assembly reference by name or alias
Requires the Cake.Incubator addin
|
| Is |
bool |
Checks if the project is a `dotnet test` compatible project
Requires the Cake.Incubator addin
|
| IsExpectoTestProject |
bool |
Checks if the project is an Expecto test compatible project
Requires the Cake.Incubator addin
|
| IsFixieTestProject |
bool |
Checks if the project is an fixie test compatible project
Requires the Cake.Incubator addin
|
| Is |
bool |
Checks if the project is a pre `dotnet test` compatible project
Requires the Cake.Incubator addin
|
| IsFsUnitTestProject |
bool |
Checks if the project is an fsunit test compatible project
Requires the Cake.Incubator addin
|
| IsGlobalTool |
bool |
Checks if the project is for a global tool
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| IsLibrary |
bool |
Checks if the project is a library
Requires the Cake.Incubator addin
|
| IsMSTestProject |
bool |
Checks if the project is an MSTest compatible project
Requires the Cake.Incubator addin
|
| IsNUnitTestProject |
bool |
Checks if the project is an NUnit test compatible project
Requires the Cake.Incubator addin
|
| IsTestProject |
bool |
Checks if the project is a test compatible project
Requires the Cake.Incubator addin
|
| IsType |
bool |
Checks the parsed projects type
Requires the Cake.Incubator addin
|
| IsWebApplication |
bool |
Checks if the project is a web application.
Requires the Cake.Incubator addin
|
| IsXUnitTestProject |
bool |
Checks if the project is an xunit test compatible project
Requires the Cake.Incubator addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| 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
|
