Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Framework dependency in a .NET Core application

enter image description here

I have an ASP.NET Core MVC web application. Some packages in NuGet have a dependency on the .NET Framework.

I am a bit confused about dependency on .NET Framework in a .NET Core application, because .NET Core is cross-platform.

What does it mean? Does it mean the .NET Framework should be installed?

like image 990
Hamid Noahdi Avatar asked Mar 02 '23 15:03

Hamid Noahdi


1 Answers

You're completely misinterpreting this information.

It just means:

IF your code using Moq is running on .NET Framework >= v4.5

THEN Moq would have dependencies on the two other package listed.

But since you're using .NET Core, the dependencies in the ".NETStandard >= 2.0" section apply to your project.

like image 66
marc_s Avatar answered Mar 05 '23 15:03

marc_s