Kye
Kye

Reputation: 6239

ASP MVC nuget packages are not added to the correct folders

I've added two well known projects to an ASP MVC application and it looks like the packages don't install under /Scripts and /Content as expected (CSS and JS are bundled together).

Am I missing something? Do package authors assume that people will move content to the correct folders, or does no one use the default ASP MVC template folders?

E.g.

enter image description here

enter image description here

Upvotes: 2

Views: 183

Answers (1)

Rowan Freeman
Rowan Freeman

Reputation: 16358

Am I missing something?

Nope.

Do package authors assume that people will move content to the correct folders, or does no one use the default ASP MVC template folders?

Pretty much both.

There is no guarantee that packages will properly conform to the default ASP.NET MVC template.

The authors have probably done it because

  • As a standalone project, it makes logical sense to put them in such a folder structure.
  • The project may be trying to be generic across many platforms. In this case it doesn't fit with MVC too well.

Upvotes: 1

Related Questions