Firstly, I want to say that I love nuget in general and use its LOT for many small projects, and especially when testing new things.
However, I have a number of reasons why I think Nuget is not suitable for my main project / environment:
- Code is deployed in a secure environment - this requires a high level of control.
- This is a fairly large project with ~ 10 developers, spanning several years - the time saved by quickly adding packages is negligible.
- I am not interested in automatically updating libraries.
- I want to know what configurations are created when I accept the new library and what other parameters I have, except that a "reasonable default" was defined on my behalf.
Simply put, I want to know what is included in my project, and Nuget is too aggressive in โhelping meโ than I can in my stomach.
So, I was very disappointed when I created a new "empty" asp.net project with support for MVC and WebAPI and found that 8 nuget packages were configured. Most of these files are wasteful (I really don't need JSON.Net for every version of the .NET Framework, but thanks).
To get a similar setup without nuget, I did the following:
- Hide a copy of the web.config file
- I copied all the DLLs that interested me in the new folder
- All nuget packages removed
- Link to the necessary DLL files
- Added necessary web.config bit
Ah, there we go. Much better.
Then I went ahead and right-click the folder Controllers> Add Controller and right-click the folder views and> Add View.
Inexplicably, the nuget package file came back and โhelped meโ by adding
- JQuery
- jquery validation
- jquery unobtrusive check.
Who says I want to use jquery validation ?!
So my question is: how to stop madness? Am I doomed to tiptoe around VS toolkit if I don't want to use nuget?
Alternatively, I also accept a convincing argument, explaining that I am overly anal-retentive about what is included in my project and should just drink Kool-Aid.
source share