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
Reads a JSON report written by dotnet-outdated.
Syntax
public static DotNetOutdatedReport ReadDotNetOutdatedReport(this ICakeContext context, FilePath path)
Examples
DotNetOutdated(".", new DotNetOutdatedReportSettings { OutputFile = "outdated.json" });
var report = ReadDotNetOutdatedReport("outdated.json");
var majorUpdates = report.Projects
.SelectMany(p => p.TargetFrameworks)
.SelectMany(f => f.Dependencies)
.Count(d => d.UpgradeSeverity == DotNetOutdatedUpgradeSeverity.Major);
Attributes
| Type |
Description |
| CakeMethodAliasAttribute |
|
| CakeAliasCategoryAttribute |
|
| CakeNamespaceImportAttribute |
|
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| path |
FilePath |
The report file. |
Return Value