ProjectParserExtensions.

GetProjectAssembly(ICakeContext, FilePath, string) Method

Summary

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

Syntax

public static FilePath GetProjectAssembly(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
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.csproj"), "Custom");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
ObsoleteAttribute

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