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.DotNetOutdated.
Summary
Runs dotnet-outdated and writes the result as a GitLab Code Quality report, using the specified settings.
- Assembly
- Cake
.DotNetOutdated .dll - Namespace
- Cake
.DotNetOutdated .GitLab - Containing Type
- Git
Lab Code Quality Aliases
Syntax
public static void DotNetOutdatedGitLabCodeQuality(this ICakeContext context, string path, FilePath outputFile, DotNetOutdatedReportSettings reportSettings, GitLabCodeQualitySettings gitLabSettings)
Examples
DotNetOutdatedGitLabCodeQuality(
".",
"gl-code-quality-report.json",
new DotNetOutdatedReportSettings { Recursive = true, FailOnUpdates = true },
new GitLabCodeQualitySettings { MinimumUpgradeSeverity = DotNetOutdatedUpgradeSeverity.Minor });
Remarks
The tool always writes JSON to a temporary file next to the report (removed afterwards); the output settings of
reportSettings are ignored and the settings object is not modified. With
FailOnUpdates the report is written first and the build is then failed
(exit code 2) unless HandleExitCode accepts it, so GitLab still receives the artifact.
Attributes
| Type | Description |
|---|---|
| Cake |
|
| Cake |
|
| Cake |
|
| Cake |
|
| Cake |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| path | string | The solution, project or directory to analyze; the current directory if empty. |
| outputFile | FilePath | The GitLab Code Quality report file. |
| reportSettings | Dot |
The dotnet-outdated settings. |
| gitLabSettings | Git |
The GitLab Code Quality settings. |
Return Value
| Type | Description |
|---|---|
| void |
