TwitterBootstrapMvc icon indicating copy to clipboard operation
TwitterBootstrapMvc copied to clipboard

MVC 6

Open Ajitweb opened this issue 9 years ago • 19 comments

Hi Dimitry,

Any special instructions for using BMVC on MVC6?

Regards

Ajit

Ajitweb avatar Mar 03 '15 16:03 Ajitweb

there will be a separate Nuget package for MVC6 once it's released

DmitryEfimenko avatar Mar 03 '15 18:03 DmitryEfimenko

Thanks for the reply Dmitry. I was trying out MVC6 and all my views are totally dependent on BMVC. I guess, then, I have to wait till MVC6 is released (hopefully in this quarter).

Ajitweb avatar Mar 04 '15 04:03 Ajitweb

Hi Dimitry. Now that VS2015 is out, is the Nuget package ready?

Ajitweb avatar Aug 25 '15 11:08 Ajitweb

MVC6 will only be released next year : https://github.com/aspnet/Home/wiki/Roadmap

natiki avatar Aug 25 '15 11:08 natiki

I should have checked before commenting. Sorry about that. Thanks @natiki

Ajitweb avatar Aug 26 '15 04:08 Ajitweb

Any update on this one? Thanks!!

mikestu avatar Nov 30 '16 18:11 mikestu

Looks like MVC6 isn't released yet: https://www.nuget.org/packages/Microsoft.AspNet.Mvc/

DmitryEfimenko avatar Nov 30 '16 18:11 DmitryEfimenko

In my haste, I was thinking mvc6 came with asp.net core. I guess that's a separate issue, but do you plan on creating a .net core version?

mikestu avatar Nov 30 '16 19:11 mikestu

@mikestu I'm not sure I understand. What problem are you running into? Is there a dependency conflict somewhere?

DmitryEfimenko avatar Nov 30 '16 19:11 DmitryEfimenko

No, I haven't even tried using this in an ASP.net Core mvc app yet to see if it would work, but I had assumed it would need to be built with .Net Core, in order to be able to use BootstrapMVC in ASP.net Core views.

mikestu avatar Nov 30 '16 19:11 mikestu

Give it a quick shot. As long as you use MVC 3, 4, or 5 all should work (I think).

DmitryEfimenko avatar Nov 30 '16 19:11 DmitryEfimenko

Nope, it doesn't support a pure ASP.net Core mvc app, since it targets the full .net 4.0 framework:

error: Package TwitterBootstrapMVC5 3.17.5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package TwitterBootstrapMVC5 3.17.5 supports: net40 (.NETFramework,Version=v4.0) error: Package T4MVCExtensions 3.6.5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package T4MVCExtensions 3.6.5 supports: net40 (.NETFramework,Version=v4.0) error: One or more packages are incompatible with .NETCoreApp,Version=v1.0.

I am not sure what would be required on your end to support Core, but from other projects I monitor, they usually end up basically doing a rewrite for Core. It's still early to get in on Core, as they are on version 1.1, but it's the next big thing for .net. One benefit for you is that ASP.net Core web apps can run on Mac and Linux as well, so the market is beyond just Windows.

mikestu avatar Nov 30 '16 19:11 mikestu

Any update on this? We have a requirement for .Net Core going forward and we used your extension heavily with our current site.

Also, the link you keep pointing to will never show MVC 6, as MVC 6 has been renamed to ASP.Net Core MVC. https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc/ https://docs.microsoft.com/en-us/aspnet/core/mvc/overview https://forums.asp.net/t/2101133.aspx?What+is+the+difference+between+MVC6+and+ASP+net+Core+

johnwc avatar May 03 '17 13:05 johnwc

I'm checking what exactly needs to be done. I'll be able to give you a better answer soon.

DmitryEfimenko avatar May 03 '17 21:05 DmitryEfimenko

No good news.

BMVC's input rendering is very tightly coupled with System.Web.Mvc. That worked well between upgrades from MVC 3 -> 4 -> 5 because that namespace and the method names in there stayed the same (even if implementation changed). However, .Net Core moved namespaces around and got rid of a lot of methods used in earlier versions. This makes upgrade be almost a full re-write of BMVC.

In addition, even though you can still create Html Helpers in .Net Core, they push for the use of new templating feature - Tag Helpers, which has a very different approach, so using old style Html Helpers would not be "future-safe".

Finally, in my personal opinion, today, server-side templating just does not fit the bill of highly interactive UX requirements. I think, you'd be better off considering Angular, React, Vue, or any other client-side framework/library. But again, that's my personal opinion.

As a conclusion, at this time I will not be investing in supporting .Net Core.

DmitryEfimenko avatar May 04 '17 09:05 DmitryEfimenko

In the last link posted by @johnwc , @Mikesdotnetting, clearly states that you need MVC6 (aka ASP.Net Core MVC) if you are developing on a non-Windows PC or deploying to a non Windows server. In my case it is not so - and looking at all the tutorials of the new MVC, non of the use case scenarios fits my style of web programming.

So I am sticking with MVC5 on ASP.NET 4.6.x . To ease html coding, instead of BMVC, I am now using knockout custom binding handlers. Also, my app is being developed using Dicky Suryadi's dotnetify which is cool - as all my business logic resides in C# and dotnetify uses SignalR to transport the data in real time between the browser and my server (no post/get or ajax). There are no scripts on the client side for any validation. All validation happens at Server. You almost get a feeling of developing a desktop application :)

Definitely worth checking it out for new projects.

Ajitweb avatar May 04 '17 10:05 Ajitweb

@Ajitweb that is not the case all the time. A great example of being forced to use ASP.Net Core for a windows deployment is if you will be deploying to IIS in the new Windows Nano server. Nano server only support .Net Core.

johnwc avatar May 04 '17 14:05 johnwc

@johnwc - I agree with you totally. In the above post, I was giving my scenario - at least for the coming few years.

By the way, dotnetify fully supports Asp.net Core

Cheers.

Ajitweb avatar May 04 '17 14:05 Ajitweb

It looks like some others have started filling this need, as far as the tag helpers go. Here is one, and appears to have a Creative Commons license: https://github.com/jqwidgets/ASP.NET-Core-MVC-Bootstrap-Tag-Helpers

mikestu avatar May 04 '17 16:05 mikestu