Skip to content

Conversation

Copy link

Copilot AI commented Jan 29, 2026

Problem

Runtime FileLoadException (HRESULT 0x80131044) when CADability (strong-name signed) loads ACadSharp v3.0.8 (unsigned) under .NET Framework. Runtime enforces strong-name requirements despite successful compilation.

Investigation

Attempted vendoring approach:

  • Cloned ACadSharp v3.0.8 source to ThirdParty/ACadSharp/
  • Configured strong-name signing with CADability's key
  • Result: Build fails with 146 errors due to C# version conflicts (code requires 8.0/9.0/11.0/12.0 mix)

Key finding: Warning suppression (<NoWarn>CS8002</NoWarn>) only silences compile-time warnings—does not resolve runtime enforcement.

Recommended Solution: ILRepack

Merge unsigned ACadSharp.dll into signed CADability.dll post-build:

<ItemGroup>
  <PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.18.3" />
</ItemGroup>

<Target Name="ILRepack" AfterTargets="Build">
  <ItemGroup>
    <InputAssemblies Include="$(OutputPath)CADability.dll" />
    <InputAssemblies Include="$(OutputPath)ACadSharp.dll" />
  </ItemGroup>
  <ILRepack
    OutputFile="$(OutputPath)CADability.dll"
    InputAssemblies="@(InputAssemblies)"
    KeyFile="$(MSBuildProjectDirectory)\CADabilityKey.snk"
    Internalize="true"
  />
</Target>

Benefits: Single signed assembly, no runtime dependency on unsigned DLLs, works with existing NuGet packages.

Alternative Approaches

Documented in STRONG_NAME_RUNTIME_ERROR.md:

  • Skip verification (requires admin, not production-ready)
  • Target .NET 6+ (modern runtimes ignore strong-name enforcement)
  • Fork and sign ACadSharp (high maintenance)
  • Request official signed package (long-term)

Status

Documentation complete. ILRepack implementation pending decision. Vendored source remains in tree but does not build.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.nuget.org
    • Triggering command: /usr/bin/wget wget -q REDACTED -O acadsharp.3.0.8.nupkg k/_temp/runtime-logs/user.env (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 5 commits January 29, 2026 14:09
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
…tex3D entities

Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace netDXF import with ACADSharp implementation Replace netDXF with ACADSharp for DXF/DWG import Jan 29, 2026
Copilot AI requested a review from dsn27 January 29, 2026 14:27
Copilot AI and others added 5 commits January 29, 2026 14:50
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Co-authored-by: dsn27 <45662116+dsn27@users.noreply.github.com>
Copilot AI changed the title Replace netDXF with ACADSharp for DXF/DWG import Document strong-name runtime error and recommend ILRepack solution for ACadSharp integration Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants