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, string platform)
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 'x86' platform
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.sln"), "Release", "x86");
For a project
// Project output dll/exe as FilePath[] for 'Custom' configuration for 'x64' platform
IEnumerable<FilePath> filePaths = GetOutputAssemblies(new FilePath("test.csproj"), "Custom", "x64");
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 |
platform | string | the platform |
Return Value
Type | Description |
---|---|
IEnumerable |
the list of output assembly paths |