Skip to content

Commit

Permalink
Doc Generation move to .NET core 3.0 (#4113)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Mpdreamz authored and russcam committed Oct 1, 2019
1 parent 66d9b48 commit bac69dc
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 1,313 deletions.
3 changes: 2 additions & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"sdk": {
"version": "3.0.100"
},
"version": "8.0.0"
"version": "8.0.0",
"doc_current": "master"
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public override void VisitDocument(Document document)
_newDocument.Attributes.Add(new AttributeEntry("nuget", "https://www.nuget.org/packages"));

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

_newDocument.Insert(0, new Comment
{
Expand Down
149 changes: 0 additions & 149 deletions src/CodeGeneration/DocGenerator/Buildalyzer/AnalyzerManager.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bac69dc

Please sign in to comment.