Skip to content

Commit

Permalink
Update Version in "Use the NuGet Library" (#10233)
Browse files Browse the repository at this point in the history
Update the version in the example for "Use the NuGet Library".

Add warning to use only the exact version.

Add necessary line to example for GenerateManagedReferenceYamlFiles.
  • Loading branch information
RiPont authored Sep 30, 2024
1 parent 33db262 commit 29f3ec3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@ jobs:
You can also use docfx as a NuGet library:
```xml
<PackageReference Include="Docfx.App" Version="2.76.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.9.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.9.2" />
<PackageReference Include="Docfx.App" Version="2.77.0" />
<!-- the versions of Microsoft.CodeAnalysis.* must match exactly what Docfx.App was built against, not the latest stable version -->
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.10.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.10.0" />
```

Then build a docset using:

```cs
await Docfx.Dotnet.DotnetApiCatalog.GenerateManagedReferenceYamlFiles("docfx.json");
await Docfx.Docset.Build("docfx.json");
```

Expand Down

0 comments on commit 29f3ec3

Please sign in to comment.