What is dnu for?

The documentation is unclear, it looks like it allows you to use wraping dlls and csproj for use in an Asp.Net Core 5 application. Can you use the class libraries built into the .NET Framework 4.6 on the .Net Core 5 website?

+5
source share
1 answer

You are correct that dnu wrap allows you to bring outdated code into ASP.NET 5 applications that are oriented to the correct framework. Everything dnu wrap does here is the creation of project.json for dll / csproj, and if you work through Visual Studio, then also reference this project.json (but you can add the link manually).

Since no code changes at all here (or dependencies, etc.), you cannot use dnu wrap to build assemblies intended for the runtime, which your project does not target other objects and does not expect it to be created if Of course, you will not update your project to target this runtime and link to any required dependencies.

That is all he does.

From dnu --help ;

Wrap csproj / assembly in project.json, which can be referenced by project.json.

+2
source

Source: https://habr.com/ru/post/1236643/


All Articles