xBimTeam / XbimGeometry

XbimGeometry contains the CLR interop libraries and the c++ engine used to compute the 3D geometry of models.
https://xbimteam.github.io/
Other
260 stars 131 forks source link

v6 Engine doesn't deploy transitive dependencies under netframework #439

Closed andyward closed 1 year ago

andyward commented 1 year ago

The build targets to copy transitive dependencies are not correctly deploying the native DLLs for the platform when the TargetFramework is net472 or similar netframework version. It deploys successfully when the application TargetFramework is net6.0

Potentially conditions not being met on:

https://github.com/xBimTeam/XbimGeometry/blob/feature/netcore/Xbim.Geometry.Engine.Interop/buildTransitive/net472/Xbim.Geometry.Engine.Interop.targets

net6 csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6</TargetFramework>
  </PropertyGroup>
...

net6 bin

image

ne472 csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>
...

net472 bin

image
Rachvel commented 2 months ago

This solution #312 can also help.