ProjectParserExtensions.

GetOutputAssemblies(ICakeContext, FilePath, string, 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, string platform)

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 'x86' platform
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.sln"), "Release", "x86");
For a project
// Project output dll/exe as FilePath[] for 'Custom' configuration for 'x64' platform
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.csproj"), "Custom", "x64");

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
platform string the platform

Return Value

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