-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuget and MVC 6 #1128
Comments
Hi - nuget is the standard delivery tool for pacages using Visual Studio. |
I know that. I'm a .Net developer. However, as I said, MVC 6 won't use (or will have diminished used) for delivering front-end scripts like this. |
Hi |
@fchiumeo then your process will not change at all |
"fit" for what's coming with the new visual studio and it turned me more comfortable having separate the frontend and backend libraries |
Nuget really sucks for client-side libraries. I think most of asp.net devs already use bower. |
I think an EoL for the nuget packages should be next year (2016) or 2+ major version (7) which ever comes first. Is that too long? |
I think you're overthinking it. Just stop updating it for the new v5. People will find a way to get the library, since most of the stuff is not on nuget anyways. |
You're probably right, I probably am overthinking it. |
Well, I think it would be nice if devs could take unsupported libraries off nuget. There are too many stale packages. |
i do use nuget for everything, i think if this is the road mvc is taking i will take it too, actually i hope bower will solve some issues i have using tfs and all the libraries files getting checkedin and getting me crazy. |
@TrabacchinLuigi I have all front end components in bower, use gulp for task, i.e. validate js, css and one task copy necessary files from bower_components to js/lib folder and check in lib folder to tfs |
i've tried that, and i lost so much time trying to make it work i think i will just download and put the files where the hell i want |
Thats what I do, only a little bit different. (Will fail if packages changes their folder structure...) gulp.task('copyJs', function () {
var requirejsOptimize = require('gulp-requirejs-optimize');
return gulp.src([
'node_modules/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js',
'node_modules/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js'])
.pipe(gulp.dest('Scripts'));
}); |
It seems that I have missed something. MVC 6 (actually ASP.NET Core) is under the RC1 version (not RELEASE yet). Actually from November 2015 (https://github.com/aspnet/Home/wiki/Roadmap) So I want to know what will be with the ASP.NET 4.5 projects? Which is actually the latest version could be used for the Production. |
@sguryev You can use gulp already in visual studio, and I recommend it. Its the way forward, and one thing less to learn when you eventually are going to use MVC 6. |
@Jogai I support 3 projects on ASP.NET 4.5. They are worked on PROD. Are you really suggesting me to switch them to the Bower and Gulp? Am I right that Gulp is "the streaming build system" and Nuget is a package manager (like Bower for example). Do you know that Bower package manage UI works incorrectly in the VS2015U2 (black unrecognizable font for the dark theme + poor packages info + wrong package versions). This is my first experience with the Gulp+Bower in the ASP.NET Core. And this problem not only with the Bootstrap package. You can check yourself. So I think that Bower is too raw in the VS and no one will agree to switch from Nuget to Bower for the old projects. It means that they will have to use old versions or update it manually. |
The decision is made. The nuget packages won't be updated to the next major release. Either use a CDN, v4, bower or npm. |
@sguryev My suggestion is to learn the tools and gain the skills. Using it in existing projects is entirely up to you, and depends on a lot of other factors. In my current project I'm only using NPM + Gulp, and I dont use the extenstion to manage the packages via the UI (that would be https://github.com/madskristensen/PackageInstaller/ I think) And its not about switching from Nuget. I like to use Nuget for server-side technologies, and npm for front-end libs. In my experience there are more front-end libraries on npm, and they're more up-to-date.
No one in your team I presume? |
@Jogai thank you for your suggestion. But enterprise projects are not the place for learning.
No one from enterprise project managers. I'm new to all this stuff and use what the default template suggests me (ASP.NET Core I mean). NPM for utils packages management, Bower for client-side packages management, Gulp - just a tool to make some transformations over static files. I have never seen how to use the NPM for the client-side packages instead of the Bower. Thank you for the URLs I will review them.
And in the start post from @Eonasdan |
In the new MVC 6 project client slide libraries like this are no longer meant to be delivered via Nuget. At some point the Nuget packages should be discontinued in favor of bower deliver (somewhat ironically given my previous comments about not using bower).
I want to continue to support older projects and I'm sure the number of early adopters will be much fewer in number than those who use Nuget for everything.
That said, is there any reason why we could not put an End of Life date on the Nuget packages?
.Net devs do you use nuget outside of MVC?
The text was updated successfully, but these errors were encountered: