Not needed from version 26.0.0 (Digi3D.AI for .NET 10). The
Digi21.DigiNG26.0.0 package adds a source file to your C# project that loads the Digi3D.AI assemblies from the installation folder when the application starts. Remove the reference to this package and reference only theDigi21.DigiNG.*packages you use. The rest of this page describes the packages up to version 24.0.0.
If a user application uses any of the NuGet packages provided by the Digi3D.NET application, such as Digi21.DigiNG.IO.Bin, as in .NET8.0 there is no concept of Global Area Cache, when executing the application it will not locate the assemblies provided by Digi3D.NET.
- A solution would be to copy the user application in the path where Digi3D.NET is installed, but this would require administrator permissions.
- Another solution consists of adding in the .runtimeconfig.json file of the user application an
additionalProbingPathsnode with the path to the Digi3D.NET installation directory, this way the user application can be in any directory and it will locate correctly the assemblies provided by Digi3D.NET.
This package adds a PostBuildEvent (which is executed each time the dependent application is recompiled) that executes a tool that adds the installation path of the Digi3D.NET program in the additionalProbingPaths node of the .runtimeconfig.json file generated when compiling.
This repository provides a project with the .runtimeconfig.json file modification tool as the NuGet package Digi21.Digi3D.App.