NuGet Packages Do Not Install Content for a Project in an ASP.NET 5 RC1 Project (vNext)

I created a barebone ASP.NET 5 project using the latest RC1 tools in Visual Studio 2015 Professional.

I have a weird issue with NuGet that doesn't work as I expected with previous versions.

When I try to install angularjs.TypeScript.DefinitelyTypedvia NuGet, I expect that a folder Scripts\typings\angularjswith all the Angular TypeScript definitions will be added to my project . This works fine when using ASP.NET 4.6, but when using ASP.NET 5 nothing happens. When I navigate to NuGet’s new global package repository C:\Users\[USERNAME]\.dnx\packages\angularjs.TypeScript.DefinitelyTyped\4.3.4, I see a content folder that Visual Studio usually sees as content to include in your project.

I tested this with various other packages, such as Bootstrap, but achieved the same results. I know that you usually use Bower for client-side packages, but I wanted to check for something purely client-side, which usually adds the "Content"and folder "Scripts".

Does anyone have any ideas how to solve this problem? Or is it design right now? And if so, what is the best way to handle this?

+4
source share

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


All Articles