2

I was looking at the possibility of porting a small project from Windows .NET framework to Ubuntu (linux) using open source .NET Core. But my project has a dependency from another much bigger .NET 4.0 project. Can I just add a reference to the .NET 4 DLL dependency?

1
  • 2
    You won't be able to create a netcoreapp1.0 if you have a dependency that require full .NET Framework. You could target net451+ in your app but since you want to run it on Linux you would have to use Mono. Unfortunately there are problems with Mono (github.com/dotnet/corefx/issues/9012) - making it work is hacky at best Commented Jul 12, 2016 at 21:43

1 Answer 1

2

Any dependencies of a .NET Core project must also support .NET Core. So, if you have a dependency that requires .NET Framework 4, you won't be able to build your new project on .NET Core.

You'll have to replace the dependency with one that supports netstandard1.X in order to use it in a .NET Core project.

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

Comments

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.