Is CAD.NET compatible with .NET Core 3.1?
Posted: 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.
{"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.