Cake.Incubator

A set of useful extension methods and aliases for Cake

#addin nuget:?package=Cake.Incubator&version=5.1.0

<package id="Cake.Incubator" version="5.1.0" />

dotnet add package Cake.Incubator --version 5.1.0

<PackageReference Include="Cake.Incubator" Version="5.1.0" />

Aliases

Contains functionality related to file system globbing.

General

ParseProject(ICakeContext, FilePath, string) Parses a csproj file into a strongly typed CustomProjectParserResult object using the specified build configuration and default platform (AnyCpu)
ParseProject(ICakeContext, FilePath, string, string) Parses a csproj file into a strongly typed CustomProjectParserResult object using the specified build configuration and target platform

Files

GetFiles(ICakeContext, string[]) Gets FilePaths using glob patterns
GetMatchingFiles(ICakeContext, IEnumerable<FilePath>) Returns files in the same directory that have the same file name but different extensions

Projects

GetOutputAssemblies(ICakeContext, FilePath, string) Gets the output assembly paths for solution or project files, for a specific build configuration
GetOutputAssemblies(ICakeContext, FilePath, string, string) Gets the output assembly paths for solution or project files, for a specific build configuration
GetProjectAssemblies(ICakeContext, FilePath, string) Gets the output assembly path for a project file, for a specific build configuration
GetProjectAssemblies(ICakeContext, FilePath, string, string) Gets the output assembly path for a project file, for a specific build configuration
GetProjectAssembly(ICakeContext, FilePath, string) Gets the output assembly path for a project file, for a specific build configuration
GetSolutionAssemblies(ICakeContext, FilePath, string) Gets the output assembly paths for a solution file, for a specific build configuration
GetSolutionAssemblies(ICakeContext, FilePath, string, string) Gets the output assembly paths for a solution file, for a specific build configuration

Test