You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See attached sample: in the solution root, a file "Directory.Packages.props" enables this feature and defines a list of nuget packages that are available inside this solution and the versions of these packages:
In each csproj file, the necessary packages are defined without versions:
<PackageReference Include="Aspose.Cells" />
When building the Sandcastle project in attached sample SandcastleNuget.zip, this results in an error:
MRefBuilder : error : Unresolved assembly reference: Aspose.Cells (Aspose.Cells, Version=24.3.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) required by SandcastleNugetLib [C:\Temp\SandcastleNuget\SandcastleDoc\Help\Working\GenerateRefInfo-7f8e79e1-7858-4d26-ae57-03abe7d4c3a7.proj]
Last step completed in 00:00:01,2907
</buildStep>
<buildStep step="Failed">
SHFB: Error BE0043: Unexpected error detected in last build step. See build log for details.
at SandcastleBuilder.Utils.BuildEngine.TaskRunner.Run(String processFilename, String targetFile, String arguments) in C:\GH\SHFB\SHFB\Source\SandcastleBuilderUtils\BuildEngine\TaskRunner.cs:line 237
at SandcastleBuilder.Utils.BuildEngine.BuildProcess.Build() in C:\GH\SHFB\SHFB\Source\SandcastleBuilderUtils\BuildEngine\BuildProcess.cs:line 997
I could workaround it by adding the "Wildcard Assembly References" plugin and let it point to the exact dll version in my Nuget cache:
It seems Sandcastle cannot resolve dependencies if "Nuget Central Package Management" is used (https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management)
See attached sample: in the solution root, a file "Directory.Packages.props" enables this feature and defines a list of nuget packages that are available inside this solution and the versions of these packages:
In each csproj file, the necessary packages are defined without versions:
When building the Sandcastle project in attached sample SandcastleNuget.zip, this results in an error:
I could workaround it by adding the "Wildcard Assembly References" plugin and let it point to the exact dll version in my Nuget cache:
Is there a better workaround?
The text was updated successfully, but these errors were encountered: