ProjectParserExtensions.

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

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 'x64' platform
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.sln"), "Release", "x64");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

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