0

I want to refresh part of view, so I want to use Ajax.BeginForm. Fo this I am installing jquery.unobtrusive-ajax plugin from nuget package manager.

The problem is, After installation of Package from Nuget, JavaScript files are not coming in lib or script folder.

Am I making any mistake or there is a different way to do it?

Thanks Keval

Keval Patel
  • 925
  • 4
  • 24
  • 46
  • Possible duplicate of [How do I include JavaScript packages I install from Nuget?](https://stackoverflow.com/questions/43485684/how-do-i-include-javascript-packages-i-install-from-nuget) – Josh Withee Aug 13 '18 at 14:22

1 Answers1

0

For scripts use bower / npm / yarn / libman. Nuget is not recommended for client side libraries. It is for installing server side packages / libraries.

Anuraj
  • 18,859
  • 7
  • 53
  • 79
  • What if, I download Javascript file and keep in lib folder instead of installing via bower / npm? and then put it as reference on view. – Keval Patel Aug 13 '18 at 17:12
  • No harm in that. But the above specified client library management tools help you to do it better. For example when you're adding the solution to source control, if you're doing manual approach you need to commit the files, but if you're using any tools, the tool manages that. – Anuraj Aug 13 '18 at 23:34