Closed Matheos96 closed 1 week ago
Are you using the latest version? Do you have an example I can use to try and reproduce the issue?
Yes I am using version 2024.2.18.0.
I am actually unable to create an example. It does seem to be .csproj specific though as if I made a copy of the .shfbproj
and dropped all Documentation Sources and added my own, dummy .NET Standard 2.0 project it actually works fine...
I even tried copying basically all the contents of a problematic .csproj into my dummy .csproj but it still works...
Obviously I cannot really post our projects here so I am unsure what to try next.. Something that the other projects are producing is causing the issue
You can try excluding types to perhaps find which one is causing the issue. If you can narrow it down, try limiting it to specific members of the type to see if you can find the cause. If you can create a test case that way, I can look into it.
Thanks for the tip. Using filters, I was able to pin it down to a single method declaration to find the culprit (or at least one of them). As of writing this message, I did not have time to verify if the issue is also caused by other types or not... It could well be the same issue in multiple places in our code base, which is likely.
In the end, the culrpit I found is our usage and references of the System.Drawing.Image
class. It is not too known to me, so I cannot speak to as why we use it etc. In the attached repro solution you will find a single interface with a single method declaration which takes a parameter of this type. This is enough to cause our issue with dotnet build
(works using the GUI though, as I said..). I have not tested whether this is specific to interfaces, or even specific to parameters. It may well reproduce wherever the type is used.
To use the sample, simply build the .csproj (.NET Standard 2.0) and then try building the Sandcastle project using dotnet build
. There will be an error and a log file similar to the original post. Then you can verify that it works when building using the GUI.
Thanks a ton for looking into this!
@EWSoftware Have you gotten around to checking out the sample? I don't mean to rush you, we are just eagerly waiting :)
I can reproduce the error but I haven't had time to try and figure out why it is happening.
Okay, no worries. Thanks for the update :) Glad it at least is not only "on my machine" 😆
We want to make the building of our SandCastle project a part of a script. The project has Presentation Style = Markdown Content and Framework version: .NET Core/.NET Standard/.NET 5.0+
This builds fine using the Sandcastle Help File Builder GUI but when I try to build it using dotnet CLI I get the following error:
The log does not tell me much either...
I tried both using
dotnet build
anddotnet msbuild
. Any tips?