38

Is the source for MVC4 available? I've searched on codeplex and all the usual places but don't seem to be able to find? Do MS keep it under wraps until the very end? Why would they do that?

David Arenburg
  • 91,361
  • 17
  • 137
  • 196
  • 1
    they usually release beta code for things like orchard etc no? –  Feb 08 '12 at 09:34
  • Does that mean MVC 3 is an open source? – Oybek Feb 08 '12 at 09:35
  • Orchard is an open-source project. – Neil Knight Feb 08 '12 at 09:35
  • it's open in that you can download and check it out - they don't allow the community to submit pull requests or anything like that though. not sure why anyone would down vote this but it's a free internet i guess. –  Feb 08 '12 at 09:36
  • It's a shame as I'm itching to get to the nuts and bolts... –  Feb 08 '12 at 09:38
  • If you can't wait, there's a bunch of [tools](http://stackoverflow.com/q/2425973/64096) that allow you to peek at the source code for any .NET assembly. – Marnix van Valen Feb 08 '12 at 09:44
  • Yeah - aware of them - had to unpick the sharepoint web parts DLLs using one years ago. Think I'll wait for the source :) –  Feb 08 '12 at 09:51
  • Many of the .NET components have their reference source available here http://referencesource.microsoft.com/netframework.aspx – njappboy Nov 21 '13 at 03:32

1 Answers1

47

They have released the source code and it's available here.

Neil Knight
  • 47,437
  • 25
  • 129
  • 188
  • 25
    just to update everyone - (and merely pulling the link from the page linked here) - all future code will apparently be released here: http://aspnetwebstack.codeplex.com/ – Andras Zoltan May 21 '12 at 14:50
  • @AndrasZoltan - Thanks Andras, will help me very much ! :) – Bibhu Dec 10 '12 at 07:05
  • 2
    I can see as per Andras Zoltans link where it is hosted but I can't for the life of me work out how to get MVC 4's code. Just the latest nightly build? – Chris Nevill Apr 09 '13 at 10:39
  • 2
    @ChrisNevill - It wasn't obvious to me either, but if you go to the downloads section and select "v4.0 RTM", it references a specific change set in the git repo (89b9166ca722). – Ferruccio Sep 03 '13 at 14:30
  • 1
    Using specific change set you can use this http://stackoverflow.com/a/14091182/1027198 instructions to get proper version. – Michał Powaga Nov 27 '13 at 12:26
  • Microsoft really needs to learn how to use this new-fangled "tagging" thing. – Ian Kemp Oct 20 '14 at 10:05
  • Do the git tags use different numbering than the releases? The commit for release v4.0 RTM is tagged in git as v2.0, which is confusing. – Mike Henry Jan 20 '15 at 22:33
  • Was wondering how these compare; [aspnetwebstack.codeplex.com](http://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/AuthorizeAttribute.cs) and [github ASP NET MVC](https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/System.Web.Http/AuthorizeAttribute.cs) -- is it the difference between MVC4 and MVC3 respectively? – Nate Anderson Sep 24 '16 at 18:55