This project has moved and is read-only. For the latest updates, please go here.


BE0058 while building XSD documentation in Visual Studio plugin


At first, i wanted to thank You for this great tool. I'm very happy that I have found it.

About the bug. It appears only if use Visual Studio plugin (but once it has appeared, it repeats independently of the build environment, because the project file is changed.

The issue:
When i try to build the documentation, i get error message:
"SHFB: Error BE0058: Two conceptual content files have the same ID".

When i open the file from working directory, it is the root element node topic.

After this message is received, further rebuild does not work, even if i try to build it from Sandcastle GUI.
It happens not always. I have not understood, whether it happens and when - not.

The workaround.
I noticed that in the project file is created entry (or even duplicate entries) with file name 'xsd.content' (of course, i have my own content file there - this one is generated by the build). When i delete these entries, the build works correctly.

file attachments

Closed Apr 21, 2013 at 10:04 PM by terrajobst
Resolved in latest release (1.9.7).


SGD wrote May 28, 2012 at 4:58 AM

Open and build the solution. Project file modified during the build - save the changes. Open the solution again. The project does not build with BE0058 error.

SGD wrote May 28, 2012 at 7:31 AM

Partial, and probably incorrect fix that works for me is here:

That was a fix for

digitaldilemma wrote Oct 3, 2012 at 5:21 PM

I'm seeing the same problem. It looks like that on build, the solution items are added every time. Hence the errors. The only work around is to unload the project, manually remove ALL the items related to the documenter then reload the project...

I'm using VS 2012.

writestuff wrote Oct 8, 2012 at 9:26 AM

I'm using Sandcastle with VS 2010 and the XML Schema Documenter and Additional Content Only plugins. The XML source is an XSD. The project builds successfully first time (Help with xsd topics folder is added to project) but subsequent build attempts fail - SHFB: Error BE0058: Two conceptual content files have the same ID. I've tried the suggestions in Comments but without success. Project builds successfully when launched from Sandcastle. Other Sandcastle VS projects with C# classes as source generate OK too.

SGD wrote Apr 15, 2013 at 2:33 AM

Thanks Immo and Eric. 1.9.7 works like a charm.

writestuff wrote Apr 15, 2013 at 10:35 AM

XML schema source project now builds successfully with 1.9.7. Thanks.