ProjectParserExtensions.

GetOutputAssemblies(ICakeContext, FilePath, string) Method

Summary

Gets the output assembly paths for solution or project files, for a specific build configuration

Syntax

public static IEnumerable<FilePath> GetOutputAssemblies(this ICakeContext context, FilePath target, string configuration)

Examples

The project or solution's FilePath and the build configuration will return the output file/s (dll or exe) for the project and return as an IEnumerable<T> The alias expects a valid `.sln` or a `csproj` file. For a solution
// Solution output dll/exe's FilePath[] for 'Release' configuration for platform 'AnyCPU'
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.sln"), "Release");
For a project
// Project output dll/exe as FilePath[] for 'Custom' configuration for platform 'AnyCPU'
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.csproj"), "Custom");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext the cake context
target FilePath the solution or project file
configuration string the build configuration

Return Value

Type Description
IEnumerable<FilePath> the list of output assembly paths