Cake.Incubator

A set of useful extension methods and aliases for Cake

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

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

dotnet add package Cake.Incubator --version 6.0.0

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

Aliases

Several extension methods when using DotNetCoreTest.

General

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

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) Gets the output assembly paths for solution or project files, for a specific build configuration
GetOutputAssemblies(FilePath, string, string) Gets the output assembly paths for solution or project files, for a specific build configuration
GetProjectAssemblies(FilePath, string) Gets the output assembly path for a project file, for a specific build configuration
GetProjectAssemblies(FilePath, string, 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) Gets the output assembly paths for a solution file, for a specific build configuration
GetSolutionAssemblies(FilePath, string, string) Gets the output assembly paths for a solution file, for a specific build configuration

Test