The dotnet publish command does not create Xbim.Geometry.Engine64.dll
I have the following problem:
When I run the command on my local machine:
dotnet build
This command above creates Xbim.Geometry.Engine64.dll in the test-xbim \ bin \ Debug \ net5.0 directory correctly. Example below.
Diretório: C:\Users\Danilo Correa\Workspace\teste-xbim\bin\Debug\net5.0
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 01/04/2021 10:25 ref
d----- 01/04/2021 10:25 runtimes
-a---- 31/03/2021 17:07 162 appsettings.Development.json
-a---- 31/03/2021 17:07 168 appsettings.json
-a---- 19/10/2020 18:48 20360 Microsoft.Extensions.Configuration.Abstractions.dll
-a---- 19/10/2020 18:48 28040 Microsoft.Extensions.Configuration.Binder.dll
-a---- 19/10/2020 18:49 22912 Microsoft.Extensions.Configuration.CommandLine.dll
-a---- 19/10/2020 18:48 30600 Microsoft.Extensions.Configuration.dll
-a---- 19/10/2020 18:49 19848 Microsoft.Extensions.Configuration.EnvironmentVariables.dll
-a---- 19/10/2020 18:50 25480 Microsoft.Extensions.Configuration.FileExtensions.dll
-a---- 19/10/2020 18:51 24960 Microsoft.Extensions.Configuration.Json.dll
-a---- 19/10/2020 18:52 23944 Microsoft.Extensions.Configuration.UserSecrets.dll
-a---- 19/10/2020 18:48 44416 Microsoft.Extensions.DependencyInjection.Abstractions.dll
-a---- 19/10/2020 18:48 74120 Microsoft.Extensions.DependencyInjection.dll
-a---- 19/10/2020 18:48 16776 Microsoft.Extensions.FileProviders.Abstractions.dll
-a---- 19/10/2020 18:49 35720 Microsoft.Extensions.FileProviders.Physical.dll
-a---- 19/10/2020 18:48 39304 Microsoft.Extensions.FileSystemGlobbing.dll
-a---- 19/10/2020 18:50 27528 Microsoft.Extensions.Hosting.Abstractions.dll
-a---- 19/10/2020 18:53 42376 Microsoft.Extensions.Hosting.dll
-a---- 19/10/2020 18:48 52616 Microsoft.Extensions.Logging.Abstractions.dll
-a---- 19/10/2020 18:50 20360 Microsoft.Extensions.Logging.Configuration.dll
-a---- 19/10/2020 18:53 49544 Microsoft.Extensions.Logging.Console.dll
-a---- 19/10/2020 18:49 16776 Microsoft.Extensions.Logging.Debug.dll
-a---- 19/10/2020 18:53 42376 Microsoft.Extensions.Logging.dll
-a---- 19/10/2020 18:49 22400 Microsoft.Extensions.Logging.EventLog.dll
-a---- 19/10/2020 18:53 30592 Microsoft.Extensions.Logging.EventSource.dll
-a---- 19/10/2020 18:49 18816 Microsoft.Extensions.Options.ConfigurationExtensions.dll
-a---- 19/10/2020 18:48 54664 Microsoft.Extensions.Options.dll
-a---- 19/10/2020 18:48 39296 Microsoft.Extensions.Primitives.dll
-a---- 19/10/2020 18:48 51080 System.Diagnostics.EventLog.dll
-a---- 01/04/2021 10:25 33204 teste-xbim.deps.json
-a---- 01/04/2021 10:25 7168 teste-xbim.dll
-a---- 01/04/2021 10:25 142848 teste-xbim.exe
-a---- 01/04/2021 10:25 12488 teste-xbim.pdb
-a---- 01/04/2021 10:25 190 teste-xbim.runtimeconfig.dev.json
-a---- 01/04/2021 10:25 147 teste-xbim.runtimeconfig.json
-a---- 15/12/2020 12:37 333312 Xbim.Common.dll
-a---- 15/12/2020 14:45 28160 Xbim.Geometry.Engine.Interop.dll
-a---- 15/12/2020 14:47 10533376 Xbim.Geometry.Engine32.dll
-a---- 15/12/2020 14:48 14194176 Xbim.Geometry.Engine64.dll
-a---- 15/12/2020 12:41 92672 Xbim.Ifc.dll
-a---- 15/12/2020 12:40 3745792 Xbim.Ifc2x3.dll
-a---- 15/12/2020 12:39 3540992 Xbim.Ifc4.dll
-a---- 15/12/2020 12:40 245248 Xbim.IO.MemoryModel.dll
-a---- 15/12/2020 14:49 129024 Xbim.ModelGeometry.Scene.dll
-a---- 15/12/2020 12:41 70144 Xbim.Tessellator.dll
However when I run the command:
dotnet publish
It does not create Xbim.Geometry.Engine64.dll, and this command is what I use on the integration server, so it does not implement the dll.
Diretório: C:\Users\Danilo Correa\Workspace\teste-xbim\bin\Debug\net5.0\publish
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 01/04/2021 10:36 runtimes
-a---- 31/03/2021 17:07 162 appsettings.Development.json
-a---- 31/03/2021 17:07 168 appsettings.json
-a---- 19/10/2020 18:48 20360 Microsoft.Extensions.Configuration.Abstractions.dll
-a---- 19/10/2020 18:48 28040 Microsoft.Extensions.Configuration.Binder.dll
-a---- 19/10/2020 18:49 22912 Microsoft.Extensions.Configuration.CommandLine.dll
-a---- 19/10/2020 18:48 30600 Microsoft.Extensions.Configuration.dll
-a---- 19/10/2020 18:49 19848 Microsoft.Extensions.Configuration.EnvironmentVariables.dll
-a---- 19/10/2020 18:50 25480 Microsoft.Extensions.Configuration.FileExtensions.dll
-a---- 19/10/2020 18:51 24960 Microsoft.Extensions.Configuration.Json.dll
-a---- 19/10/2020 18:52 23944 Microsoft.Extensions.Configuration.UserSecrets.dll
-a---- 19/10/2020 18:48 44416 Microsoft.Extensions.DependencyInjection.Abstractions.dll
-a---- 19/10/2020 18:48 74120 Microsoft.Extensions.DependencyInjection.dll
-a---- 19/10/2020 18:48 16776 Microsoft.Extensions.FileProviders.Abstractions.dll
-a---- 19/10/2020 18:49 35720 Microsoft.Extensions.FileProviders.Physical.dll
-a---- 19/10/2020 18:48 39304 Microsoft.Extensions.FileSystemGlobbing.dll
-a---- 19/10/2020 18:50 27528 Microsoft.Extensions.Hosting.Abstractions.dll
-a---- 19/10/2020 18:53 42376 Microsoft.Extensions.Hosting.dll
-a---- 19/10/2020 18:48 52616 Microsoft.Extensions.Logging.Abstractions.dll
-a---- 19/10/2020 18:50 20360 Microsoft.Extensions.Logging.Configuration.dll
-a---- 19/10/2020 18:53 49544 Microsoft.Extensions.Logging.Console.dll
-a---- 19/10/2020 18:49 16776 Microsoft.Extensions.Logging.Debug.dll
-a---- 19/10/2020 18:53 42376 Microsoft.Extensions.Logging.dll
-a---- 19/10/2020 18:49 22400 Microsoft.Extensions.Logging.EventLog.dll
-a---- 19/10/2020 18:53 30592 Microsoft.Extensions.Logging.EventSource.dll
-a---- 19/10/2020 18:49 18816 Microsoft.Extensions.Options.ConfigurationExtensions.dll
-a---- 19/10/2020 18:48 54664 Microsoft.Extensions.Options.dll
-a---- 19/10/2020 18:48 39296 Microsoft.Extensions.Primitives.dll
-a---- 19/10/2020 18:48 51080 System.Diagnostics.EventLog.dll
-a---- 01/04/2021 10:36 33204 teste-xbim.deps.json
-a---- 01/04/2021 10:25 7168 teste-xbim.dll
-a---- 01/04/2021 10:25 142848 teste-xbim.exe
-a---- 01/04/2021 10:25 12488 teste-xbim.pdb
-a---- 01/04/2021 10:36 147 teste-xbim.runtimeconfig.json
-a---- 15/12/2020 12:37 333312 Xbim.Common.dll
-a---- 15/12/2020 14:45 28160 Xbim.Geometry.Engine.Interop.dll
-a---- 15/12/2020 12:41 92672 Xbim.Ifc.dll
-a---- 15/12/2020 12:40 3745792 Xbim.Ifc2x3.dll
-a---- 15/12/2020 12:39 3540992 Xbim.Ifc4.dll
-a---- 15/12/2020 12:40 245248 Xbim.IO.MemoryModel.dll
-a---- 15/12/2020 14:49 129024 Xbim.ModelGeometry.Scene.dll
-a---- 15/12/2020 12:41 70144 Xbim.Tessellator.dll
``´
My machine information:
Windows 10 x64 Microsoft visual c ++ 2015-2019 x64
dotnet --info
Environment runtime:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.200\
Host (useful for support):
Version: 5.0.3
Commit: c636bbdc8a
.NET SDKs installed:
5.0.200 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
This is my test-xbim.csproj
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0-preview.2.21154.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0-preview.2.21154.6" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-preview.2.21154.6" />
<PackageReference Include="Xbim.Essentials" Version="5.1.323" />
<PackageReference Include="Xbim.Geometry" Version="5.1.403" NoWarn="NU1701" />
<PackageReference Include="Xbim.Geometry.Engine.Interop" Version="5.1.403" NoWarn="NU1701" />
<PackageReference Include="Xbim.ModelGeometry.Scene" Version="5.1.403" NoWarn="NU1701" />
</ItemGroup>
I am observing the same behaviour both when publishing locally and when building using an Azure DevOps pipeline. This was originally reported a year ago... Is this a problem with the NuGet package definition, or am I missing something?
@dcorrea777 did you find a way of fixing this issue?
Hi @yogster
It's been so long since I worked with this library that I forgot how I solved this problem.
I believe it is nothing related to the Nuget package. But I think it was something related to my project, as I used several projects within the same solution. Do you also work this way?