Cake.Incubator

A set of useful extension methods and aliases for Cake

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

dotnet add package Cake.Incubator --version 7.0.0

<PackageReference Include="Cake.Incubator" Version="7.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

DotNetCoreTest(DotNetCoreTestSettings, FilePath, XUnit2Settings) Appends XUnit2Settings to an Cake.Common.Tools.DotNetCore.Test.DotNetCoreTestSettings instance
DotNetCoreTest(FilePath, XUnit2Settings) Runs DotNetCoreTest using the given XUnit2Settings