3

I'm planning on migrating an old website built in WebForms to a .NET Core web application. But there are a few projects in the solution that are targeting .NET Framework 4.6.2 that are currently being used by the WebForm project. Is it possible to still uses these libraries in a .NET Core web app?

2
  • What are the libraries? Commented Feb 22, 2019 at 22:11
  • @CiganoMorrisonMendez Theyre .NET Framework Class Libraries. Commented Feb 22, 2019 at 22:12

1 Answer 1

3

You should be able to if your .Net Core project is also targeting the net462 or later Full .NET Framework.

Sign up to request clarification or add additional context in comments.

6 Comments

How do I ensure that? I apologize a lot of this project level detail is new to me.
So a .NET Framework Class Library can be used by a .NET Core Web app if the .NET Core project builds for both .net core and .net framework? Do I have that correct?
Not both. If you want to use full .NET Framework libraries, you can only target .NET Framework, unless you use multi-targeting and provide alternate implementations of those libraries for the .Net Core targets.
I see so I have to change the .NET Core web app to target .netframework instead of .netcore.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.