Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can "legacy" .NET projects also use the new NuGet 3 features?

The new NuGet version fixes lots of problems (e.g. transitive dependency capabilities, dependency resolution at build time, single packages repository cache, etc.).

However I could only test it with the ASP.NET vNext and UWP projects.

Will these new features also be available for "legacy" projects (e.g. full .NET 4.5/4.6 projects, WPF, etc.)?

like image 694
Rico Suter Avatar asked Aug 14 '15 10:08

Rico Suter


People also ask

How do I import a NuGet package from one project to another?

Select the Tools > NuGet Package Manager > Package Manager Console menu command. Once the console opens, check that the Default project drop-down list shows the project into which you want to install the package. If you have a single project in the solution, it is already selected.

Does .NET 4.8 include 4.7 2?

if you have 4.8 then you have 4.7. 2 automatically. did you install developer pack or runtime?

Does .NET core use NuGet?

NET (including . NET Core), the Microsoft-supported mechanism for sharing code is NuGet, which defines how packages for .

Why do we need to upgrade .NET Framework?

A framework update comes with a lot of good things like the removal of bugs discovered in the previous version(s), patch security flaws, performance improvements, and new features that make the development process easier. Installing the latest Visual Studio that comes with the latest .


1 Answers

As of 8/19/2015, it seems that the new features are not supported for "legacy" projects but may be added later. According to the NuGet documentation:

project.json is mandatory for UWP apps and ASP.NET 5 apps, is optional for PCLs, and currently is not fully supported on other project systems.

and

Starting from Visual Studio 2015, several project types are utilizing this technology, with more to follow in the future.

1.Universal Windows Platform managed apps (UWP).

2.Portable class libraries (PCL).

3.ASP.NET 5 applications.

like image 119
Rico Suter Avatar answered Sep 19 '22 13:09

Rico Suter