ProjectParserExtensions.

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

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 'Debug' configuration and AnyCPU platform
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.csproj"), "Custom", "AnyCPU");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
FilePath[] the output assembly path