ProjectParserExtensions.

GetProjectAssemblies(ICakeContext, FilePath, string) Method

Summary

Gets the output assembly path for a project file, for a specific build configuration

Syntax

public static FilePath[] GetProjectAssemblies(this ICakeContext context, FilePath target, string configuration)

Examples

The project's FilePath and the build configuration will return the output file (dll or exe) for the project and return as a FilePath The alias expects a valid project file.
// Project output dll/exe as FilePath[] for 'Custom' configuration for AnyCPU platform
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 project file
configuration string the build configuration

Return Value

Type Description
FilePath[] the output assembly path