ProjectParserExtensions.

GetSolutionAssemblies(ICakeContext, FilePath, string) Method

Summary

Gets the output assembly paths for a solution file, for a specific build configuration

Syntax

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

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

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