Core: How to call a .NET 4.6.2 DLL from a .NET Core MVC Web App

Created on 28 Apr 2017  路  6Comments  路  Source: dotnet/core

I'd like to write a web app in .NET Core, but I need to call a DLL that was compiled for .NET 4.6.2. Is this possible? I'm using Visual Studio 2017.

Most helpful comment

This is now possible from a .NET Core 2.0 project. I am going to close this. It's expected to work so if you hit any issues, please open a new issue with the specific details.

All 6 comments

This is something we're looking to make possible in the upcoming update to VS. The plan is to let you reference the dll but depending on the dll, it may or may not work depending on what it depends on.

I think if you chose ASP.Net Core Web Application (.Net Framework), it will support all Libs and Dlls for .Net.

I was looking for TransactionScope in .Net Core which is not yet implemented in .Net Core v1 so I chose the target framework as .Net for now, until the feature arrives for .Net Core.

Hope it helps.

This is now possible from a .NET Core 2.0 project. I am going to close this. It's expected to work so if you hit any issues, please open a new issue with the specific details.

Is this possible in .NET Core 2.0..? I have some issues in doing this...

If you have the latest SDK's and Visual Studio, please open a new issue with the details of the issues you are encountering.

Was this page helpful?
0 / 5 - 0 ratings