Skip to content

Commit 4646e4b

Browse files
Mpdreamzrusscam
authored andcommitted
Doc Generation move to .NET core 3.0 (#4113)
- Separate version from current doc version - Source files should point to reference doc version as origin - Use Json.NET to parse global.json - Reference Buildalyzer package For some reason the projects referenced by docs need LangVersion in the csproj file itself on linux while working fine on windows (cherry picked from commit bac69dc)
1 parent 8c37ba8 commit 4646e4b

23 files changed

+80
-1313
lines changed

global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"sdk": {
33
"version": "3.0.100"
44
},
5-
"version": "7.3.0"
5+
"version": "7.3.0",
6+
"doc_current": "7.3"
67
}

src/CodeGeneration/DocGenerator/AsciiDoc/GeneratedAsciidocVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public override void VisitDocument(Document document)
7373
_newDocument.Attributes.Add(new AttributeEntry("nuget", "https://www.nuget.org/packages"));
7474

7575
var originalFile = Regex.Replace(_source.FullName.Replace("\\", "/"), @"^(.*Tests/)",
76-
$"{github}/tree/{Program.BranchName}/src/Tests/Tests/");
76+
$"{github}/tree/{Program.DocVersion}/src/Tests/Tests/");
7777

7878
_newDocument.Insert(0, new Comment
7979
{

src/CodeGeneration/DocGenerator/Buildalyzer/AnalyzerManager.cs

Lines changed: 0 additions & 149 deletions
This file was deleted.

src/CodeGeneration/DocGenerator/Buildalyzer/AnalyzerManagerExtensions.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/CodeGeneration/DocGenerator/Buildalyzer/Environment/BuildEnvironment.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/CodeGeneration/DocGenerator/Buildalyzer/Environment/CoreEnvironment.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)