DocFX Version Used: 2.26.0
Template used: default
Steps to Reproduce:
Expected Behavior:
Package is installed, docfx.json created in project root
Actual Behavior:
Package is installed, docfx.json not in project root
This is related to some changes in NuGet where content is replaced by contentFiles and requires changes in nuspec.
Here I found related specification.
https://github.com/NuGet/Home/wiki/%5BSpec%5D-Content-v2-for-project.json
Did some testing and this new structure isn't going to work. NuGet stopped supporting untracked files, meaning files are only referenced in the project adding the package.
Tried looking for some solution, but it looks like the only way would be to use the msbuild targets to run a script prebuild to copy the files if docfx is missing.
Hi @jhermsen Thanks for the investigation, I am going to call docfx init first if docfx.json is not detected in the project... docfx init need to be enhanced to allow parameters to specify the input projects and output folder
@vicancy Thank you for fixing this bug!
Most helpful comment
This is related to some changes in NuGet where content is replaced by contentFiles and requires changes in nuspec.
Here I found related specification.
https://github.com/NuGet/Home/wiki/%5BSpec%5D-Content-v2-for-project.json