This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Gets the output assembly paths for solution or project files, for a specific build configuration
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .Project - Containing Type
- Project
Parser Extensions
Syntax
public static IEnumerable<FilePath> GetOutputAssemblies(this ICakeContext context, FilePath target, string configuration)
Examples
The project or solution's
FilePath
and the build configuration will
return the output file/s (dll or exe) for the project and return as an IEnumerable<T>
The alias expects a valid `.sln` or a `csproj` file.
For a solution
// Solution output dll/exe's FilePath[] for 'Release' configuration for platform 'AnyCPU'
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.sln"), "Release");
For a project
// Project output dll/exe as FilePath[] for 'Custom' configuration for platform 'AnyCPU'
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.csproj"), "Custom");
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | the cake context |
target | FilePath | the solution or project file |
configuration | string | the build configuration |
Return Value
Type | Description |
---|---|
IEnumerable |
the list of output assembly paths |