Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: File not found "...\TemplatesPlaceHolderNode.aml" #884

Closed
eutrom opened this issue Jan 13, 2022 · 1 comment
Closed

Build error: File not found "...\TemplatesPlaceHolderNode.aml" #884

eutrom opened this issue Jan 13, 2022 · 1 comment

Comments

@eutrom
Copy link

eutrom commented Jan 13, 2022

I get an error when I try to build a project. The error says that the file "...\TemplatesPlaceHolderNode.aml" could not be found.
In File SHFB/SHFB/Source/SandcastleBuilderUtils/ConceptualContent/TokenCollection.cs
please change Line 443 from:
templateText = Utility.ReadWithEncoding(builder.TemplateFolder + "PlaceHolderNode.aml",
to:
templateText = Utility.ReadWithEncoding(Path.Combine(builder.TemplateFolder, "PlaceHolderNode.aml"),

As a quick fix i copied the .aml file to the parent directory and renamed it to "TemplatesPlaceHolderNode.aml". Now I get another error that there is an unknown substitution tag "SHFBFolder" (BE0020). But I think it´s a different issue.

@EWSoftware
Copy link
Owner

EWSoftware commented Jan 13, 2022

The placeholder is used when you have a topic in the content layout file without an associated file. You can work around it by assigning a blank topic file to it.

The substitution tag error is probably caused by an outdated code block component configuration in the project. Just open the code block component configuration and save it again to have it correct the settings. See the release notes related to breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants