-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor project data and package data classes
- Loading branch information
1 parent
b09bdea
commit 260a6fc
Showing
9 changed files
with
184 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/NetPackageAnalyzer/NetPackageAnalyzerWork/Templates/ProjectPackages.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@inherits RazorBlade.PlainTextTemplate<ProjectData>; | ||
@{ | ||
var nameCsproj = Model.NameCSproj(); | ||
var relativePath = Model.RelativePath(); | ||
var name = nameCsproj + "[" + relativePath + "]"; | ||
} | ||
|
||
# Project packages | ||
|
||
|Nr|ID|Version| | ||
| ----------- | ----------- | ----------- | | ||
@{ | ||
int i = 0; | ||
} | ||
@foreach (var item in Model.AlphabeticalProjectPackages) | ||
{ | ||
i++; | ||
var vers = item.VersionsForProject(Model); | ||
var display= string.Join(", ", vers); | ||
|
||
<text>| @i | @item.packageVersionId | @display | | ||
</text> | ||
} | ||
|
||
|
||
<small>Generated by https://www.nuget.org/packages/netpackageanalyzerconsole , version @Model.Version</small> | ||
|
39 changes: 10 additions & 29 deletions
39
src/NetPackageAnalyzer/NetPackageAnalyzerWork/Templates/ProjectRelations.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/NetPackageAnalyzer/NetPackageAnalyzerWork/Templates/ProjectsRelations.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@inherits RazorBlade.PlainTextTemplate<ProjectsDict>; | ||
# Projects relations | ||
|
||
```mermaid | ||
graph TB | ||
%% start projects | ||
|
||
@foreach (var proj in Model.AlphabeticOrderedProjects) | ||
{ | ||
var nameCsproj = proj.NameCSproj(); | ||
var relativePath = proj.RelativePath(); | ||
var name = nameCsproj + "[" + relativePath + "]"; | ||
<text> | ||
@name | ||
|
||
</text> | ||
} | ||
|
||
%% end projects | ||
|
||
@foreach (var proj in Model.AlphabeticOrderedProjects) | ||
{ | ||
var nameCsproj = proj.NameCSproj(); | ||
var relativePath = proj.RelativePath(); | ||
var comment = $"%% start project reference {relativePath}"; | ||
<text> | ||
|
||
@comment | ||
|
||
@foreach (var rel in proj.AlphabeticalProjectsReferences) | ||
{ | ||
<text> | ||
@nameCsproj-->@rel.NameCSproj() | ||
|
||
</text> | ||
|
||
} | ||
</text> | ||
|
||
} | ||
|
||
``` | ||
<small>Generated by https://www.nuget.org/packages/netpackageanalyzerconsole , version @Model.Version</small> | ||
|