Cake.Incubator

A set of useful extension methods and aliases for Cake

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

dotnet add package Cake.Incubator --version 8.0.0

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

Aliases

Several extension methods when using DotNetTest.

General

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

Files

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

Projects

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

Test