I tried to generate documentation for a .netstandard2.0 project using DocFX.
- Installed DocFX using chocolatey package.
- Created a sample project using command line.
- Updated the docfx.json w.r.t the folder structure.
- Build the website using command line.
The DocFX site builded but project specific documentation not generated. And there were some warnings like
Warning:No metadata is generated for ProjectName
SDK "Microsoft.NET.Sdk" not found
Set environment variable MSBuildSDKsPath pointing right to the SDK path. In my case,
After setting the environment variable, closed the command line (VS Code) and re opened. Tried building the DocFX again and it worked.