Hacker News new | ask | show | jobs
by alkonaut 2141 days ago
I mean for existing pre-built binary libraries built for netfx (which is what we are stuck with as dependencies in many cases) there is no way to use them under core/net5 that I’m aware of (I’d be happy to learn that it was!).

E.g I have a huge library from Autodesk that targets 4.6.2 and I consume it from 4.7.1 now. I don’t think they have a plan to support a Core/net5 framework so my app can’t either.

Obviously you can rebuild libraries and target both/netstandard/whatever but that’s not what I mean.

2 comments

There is actually a compatibility mode[1], although not everything is supported:

"Starting with .NET Standard 2.0, the .NET Framework compatibility mode was introduced. This compatibility mode allows .NET Standard and .NET Core projects to reference .NET Framework libraries. Referencing .NET Framework libraries doesn't work for all projects, such as if the library uses Windows Presentation Foundation (WPF) APIs, but it does unblock many porting scenarios."

I don't know if there are downsides or if the compatibility will be removed in the future.

https://docs.microsoft.com/en-us/dotnet/core/porting/third-p...

Seems to me more like the issue is with Autodesk and with an unmaintained binary dependency, not with .NET at all.