Is CAD.NET compatible with .NET Core 3.1?

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
MatthewCzajka
Posts: 2
Joined: 18 Aug 2021, 17:56

Is CAD.NET compatible with .NET Core 3.1?

Post by MatthewCzajka » 19 Aug 2021, 21:21

I just switched my project from .NET Framework 4.7 to .NET Core 3.1 for project reasons, but now when I run my code I get an exception:

{"Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.":"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"}

And before I run the application I see a warning that says:

Severity Code Description Project File Line Suppression State
Warning NU1701 Package 'CAD.NET 14.1.0.48119' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project. SlitSpec C:\iimakProjects\SlitSpec\SlitSpec\SlitSpec.csproj 1


Not entirely sure how to fix the situation or to get passed the error/warnings.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Is CAD.NET compatible with .NET Core 3.1?

Post by support » 20 Aug 2021, 12:37

Hello,

CAD .NET library currently relies on System.Windows.Forms assembly and is not compatible with .NET Core. We are considering the possibility of supporting .NET Core, but not in the near future.

Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply