Closed Evelios closed 2 years ago
A shot in the dark: it looks like it’s failing before the build props:
...
Build FAILED.
...
Warning: While cracking project files, no project files succeeded.
Do you know which project is failing to build? It’s probably the same one that the project cracking tool is failing on.
To narrow it down, maybe you could try using the input parameter such as fsdocs —input src/…
to target your three projects individually one by one? That could help narrow down the problem to which project is failing.
Is there also a solution file (e.g. "Geometry.sln") under the project directory? If yes, it may be similar to the problem reported at #680.
A while ago I tried looking into that issue by taking the steps that were suggested already. The following is quoted from a longer comment, on the topic of fsdoc 11.2.0 choking on multi-project builds:
This appears to only affect input files in solution format;
*.fsproj
files can still be processed one by one:$ dotnet fsdocs build --projects $(pwd)/FsDocsSample.Lib1/FsDocsSample.Lib1.fsproj --strict cracking projects... please set '<FsDocsLicenseLink>' in 'Directory.Build.props' please set '<FsDocsReleaseNotesLink>' in 'Directory.Build.props' please set '<RepositoryUrl>' in 'Directory.Build.props' please set '<FsDocsLicenseLink>' in 'Directory.Build.props' please set '<FsDocsReleaseNotesLink>' in 'Directory.Build.props' please set '<RepositoryUrl>' in 'Directory.Build.props' Inputs for API Docs: /home/rob/dev/FsDocsSample/FsDocsSample.Lib1/bin/Debug/netstandard2.0/FsDocsSample.Lib1.dll Substitutions/parameters: root --> /FsDocsSample/ fsdocs-authors --> FsDocsSample.Lib1 fsdocs-collection-name --> FsDocsSample fsdocs-collection-name-link --> /FsDocsSample/ fsdocs-logo-src --> /FsDocsSample/img/logo.png fsdocs-navbar-position --> fixed-left fsdocs-theme --> default fsdocs-logo-link --> /FsDocsSample/ fsdocs-package-project-url --> /FsDocsSample/ fsdocs-package-tags --> fsdocs-package-version --> 1.0.0 using extra content from /home/rob/.nuget/packages/fsharp.formatting.commandtool/11.2.0/extras note, no template files: 'docs/reference/_template.html', 'docs/_template.html', 'docs/reference/_template.md', 'docs/_template.md' found, using default template /home/rob/.nuget/packages/fsharp.formatting.commandtool/11.2.0/templates/_template.html API docs: generating model for 1 assemblies in API docs... loading 1 assemblies... isNetCoreApp = true registering entities for assembly FsDocsSample.Lib1... reading XML doc for /home/rob/dev/FsDocsSample/FsDocsSample.Lib1/bin/Debug/netstandard2.0/FsDocsSample.Lib1.dll... reading assembly data for /home/rob/dev/FsDocsSample/FsDocsSample.Lib1/bin/Debug/netstandard2.0/FsDocsSample.Lib1.dll... collecting namespaces... found namespace FsDocsSample.Lib1 in assembly FsDocsSample.Lib1... found 2 entities in namespace FsDocsSample.Lib1... found 1 namespaces... Content: Write API Docs: Generating output/reference/index.html Generating output/reference/fsdocssample-lib1.html Generating output/reference/fsdocssample-lib1-imyinterface1.html Generating output/reference/fsdocssample-lib1-myexception.html Write Content: $ dotnet fsdocs build --projects $(pwd)/FsDocsSample.Lib2/FsDocsSample.Lib2.fsproj --strict discarding project state in '.fsdocs/cache' as now invalid cracking projects... please set '<FsDocsLicenseLink>' in 'Directory.Build.props' please set '<FsDocsReleaseNotesLink>' in 'Directory.Build.props' please set '<RepositoryUrl>' in 'Directory.Build.props' please set '<FsDocsLicenseLink>' in 'Directory.Build.props' please set '<FsDocsReleaseNotesLink>' in 'Directory.Build.props' please set '<RepositoryUrl>' in 'Directory.Build.props' Inputs for API Docs: /home/rob/dev/FsDocsSample/FsDocsSample.Lib2/bin/Debug/netstandard2.0/FsDocsSample.Lib2.dll Substitutions/parameters: root --> /FsDocsSample/ fsdocs-authors --> FsDocsSample.Lib2 fsdocs-collection-name --> FsDocsSample fsdocs-collection-name-link --> /FsDocsSample/ fsdocs-logo-src --> /FsDocsSample/img/logo.png fsdocs-navbar-position --> fixed-left fsdocs-theme --> default fsdocs-logo-link --> /FsDocsSample/ fsdocs-package-project-url --> /FsDocsSample/ fsdocs-package-tags --> fsdocs-package-version --> 1.0.0 using extra content from /home/rob/.nuget/packages/fsharp.formatting.commandtool/11.2.0/extras note, no template files: 'docs/reference/_template.html', 'docs/_template.html', 'docs/reference/_template.md', 'docs/_template.md' found, using default template /home/rob/.nuget/packages/fsharp.formatting.commandtool/11.2.0/templates/_template.html API docs: generating model for 1 assemblies in API docs... loading 1 assemblies... isNetCoreApp = true registering entities for assembly FsDocsSample.Lib2... reading XML doc for /home/rob/dev/FsDocsSample/FsDocsSample.Lib2/bin/Debug/netstandard2.0/FsDocsSample.Lib2.dll... reading assembly data for /home/rob/dev/FsDocsSample/FsDocsSample.Lib2/bin/Debug/netstandard2.0/FsDocsSample.Lib2.dll... collecting namespaces... found namespace FsDocsSample.Lib2 in assembly FsDocsSample.Lib2... found 2 entities in namespace FsDocsSample.Lib2... found 1 namespaces... Content: Write API Docs: Generating output/reference/index.html Generating output/reference/fsdocssample-lib2.html Generating output/reference/fsdocssample-lib2-mymodule2.html Generating output/reference/fsdocssample-lib2-imyinterface2.html
@rdipardo That doesn't seem to be the issue. I've been doing major refactoring on this project and I'm no longer seeing this issue. Thanks for the help
Documentation building issue
I've been unable to build the documentation for my project completely. I keep getting stuck at the same step getting the error
please set '<Attribute...>' in 'Directory.Build.props'
. I've tried to fix this issue by including theBuild.Directory.props
file at the root of the project but it appears that the program is not picking that file up when processing myGeometry.fsproj
file.Gives me the following error
/Build.Directory.props