Visual Studio 2012 and .NET Framework 4.5 is RELEASED - Here's 5 minute videos to get you up to speed quick
Jason Zander announced today that Visual Studio 2012 and .NET Framework 4.5 is RELEASED to web. The .NET Web Tools Team (the team I'm on) has coverage on their blog as well. I thought I'd showcase some Tiny Happy Features that the team worked on just because it made life better. Some are large some are small, but all are tiny happy features.
I'll continue for a few more Tiny Happy Features over the next few weeks but this last week I took some time and recorded 13 (ya, thirteen, oy) short videos to show you guys these features in action. These are SHORT videos that are at most 4 to 6 minutes. It's hard to watch 60 to 90 minute screencast so I did these little one-take quick shots so you could watch them at lunch.
If you watch all these videos it will take you less than an hour and you'll have a good practical idea of what's new in Web Development and Tools with Visual Studio 2012. This is by no means exhaustive, but it's a lot.
The other concept that's worth pointing out is One ASP.NET. We've pulled the Web Tooling and Templates out into extensions in Visual Studio 2012. This means we can update Web Tools without updating all of Visual Studio. I talked about this in the One ASP.NET keynote at aspConf. We'll be updating the tools - not in major scary ways - but in useful and important ways that make front end web development easier. We'll look at small updates either quarterly or maybe semi-annually so when a new technique comes out you don't have to wait for the next version of Visual Studio.
Download Visual Studio 2012
MSDN Subscribers can download now at the MSDN Subscriber Download Page. For volume licensing customers, Visual Studio 2012 products will be on the Volume Licensing Service Center tomorrow. If you want to download Visual Studio 2012 free trial versions, or to download the free Express versions, head over to the the Visual Studio product website.
Azure SDK for both Visual Studio 2012 and Visual Studio 2010
It's also worth noting that the Windows Azure .NET SDK has been updated today as well and you can download versions for either Visual Studio 2010 SP1 or Visual Studio 2012.
The Videos
Here's the 13 short videos showing each of my favorite features in just a few minutes. There are new Entity Framework 5 videos as well, so be sure to scroll all the way down!
CODEC NOTE: These are using HTML5 video and MP4. If you are using a browser that doesn't support that codec, click the Header links to go to the ASP.NET site directly and the videos will stream with Silverlight.
Model Binding
HTML Editor
CSS Editor
JavaScript Editor
Page Inspector
ASP.NET 4.5 Web Forms Strongly Typed Data Controls
Web Publishing Improvements
ASP.NET MVC 4
ASP.NET Web API
Bundling and Optimization
SignalR and Web Sockets
Async and Await
OAuth in the Default ASP.NET 4.5 Templates
Entity Framework 5
There are also 5 new Entity Framework videos done by Rowan Miller that show new features of the new Entity Framework 5 as well as walk you through Code First vs. Model First vs. Database First. They are excellent screencasts and I recommend them.
I want to write code:
- I am creating a new database - Use Code First to define your model in code and then generate a database.
- I need to access an existing database - Use Code First to create a code based model that maps to an existing database.
I want to use a visual designer:
- I am creating a new database - Use Model First to define your model using boxes and lines and then generate a database.
- I need to access an existing database - Use Database First to create a boxes and lines model that maps to an existing database.
EF5 is the newest version of Entity Framework. These short videos and step-by-step walkthroughs will get you started with the new EF5 features
- Enum Support in Code First - The domain classes that make up your Code First model can now contain enum properties that will be mapped to the database.
- Enum Support in EF Designer - Using the EF Designer you can now add enum properties to your entities.
- Spatial Data Types in Code First - Spatial data types can now be exposed in your Code First model using the new DbGeography and DbGeometry types.
- Spatial Data Types in EF Designer - Spatial data types can now be used in the EF Designer using the new DbGeography and DbGeometry types.
- Table-Valued Functions - Table-valued functions (TVFs) in your database can now be used with Database First models created using the EF Designer.
- Multiple Diagrams per Model - The EF Designer now allows you to have several diagrams that visualize subsections of your overall model. This allows larger models to be broken up into multiple smaller diagrams. You can also add color to the entities to help identify sections of your model.
Related Links
- Visual Studio 2012 and .NET Framework 4.5 is RELEASED - Jason Zander's Blog
- The .NET Web Tools Team and the new Web Tools in Visual Studio 2012
- ASP.NET vNext Videos
- Entity Framework videos
- What's new and what's coming in ASP.NET Web API
- From Yao, Introducing the ASP.NET Web API Help Page (Preview) (includes a video)
- From Alex, OData support in ASP.NET Web API (very detailed, including how to bring back [Queryable] support)
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
About Newsletter
Go Azure!
http://www.microsoft.com/visualstudio/11/en-us/downloads#ultimate
On a side note, why is WCF not listed under 'Services' of your 'One ASP.Net' slide?
Loving the JS editor improvements. I write a ton of JS and that's really going to help so thanks...
I noticed in the JS editor video that when you typed /// the editor did not insert the C# style XML comment snippet (with summary and each parameter templated out), was that a conscious decision? Can we add it?
Ben - Good idea. Tell @mkristensen and maybe we can add.
Anthony - Very soon I hear.
Is there any reason why VS2010 could not target .NET Framework 4.5? Is this purely MS marketing to force users to upgrade to VS2012?
Thanks
Mark - As I understand it it's more complex than that as there's new compilers, new multi-targeting, etc. You could maybe hack something together with an external call to MSBuild but, no, it's not marketing.
I don't know if anyone else is having this problem, but if I view this blog post via google reader then it Blue Screens my PC. It looks like it's an issue with the ATI drivers as the file causing the problem is atikmpag.sys.
I'm presuming it's to do with the HTML5 video, but can't be sure. I got my colleague to go this blog via google reader and it blue screened his PC as well.
Anyone else having similar problems?
Cheers,
Ben
This should be fixed.
This video was extremely easy to understand and the content was presented well. Adding the attributes to the parameters of CRUD methods makes things really simple. As I always believe, we need to focus on doing something to solve the domain problems rather than solving technical problems, this is one step towards that. No code is best code! :-). Thanks for this wonderful series of videos.
Installed Windows 8 Pro 64 bit and then used Web Installer for Visual Studio 2012 to install. Seems that the .NET Framework 4 Multitargeting pack failed to install. So now I can't upgrade any of my 2010 projects to 2012 because then I will have to target the 4.5 Framework. How can I fix this? Or who can I get in touch with for help?
Thanks...
There is something that is still unclear to me. Mads Kristensen adds a lot of functionalities (CSS, less, coffescript,..) with its Web Essentials 2012. Is it the aim that those functionalities will be integrated later via the tools update without having to use Web Essentials. I hope so because the Web Essentials extension can't be installed in the Express edition and my students only use the VWD for learning ASP.NET.
For the rest I know you don't care about it (or at least you can't communicate about it), but the UI still sucks. Imagine the London Metro maps in only two colors light grey for the background and dark grey for all the metro lines. That what you designers gave us! So please at least tell your colleagues to stop thanking us for the feedbacks as a huge numbers of those seemed to be just ignored by all microsoft guys in all microsoft blogs.
First of all, great work! You like the new look or you don't but you can't deny the tools are much better and faster.
Just one question though, any reason behind the fact that VS2012 is still not available in 64 bits? Just curious.
Thanks
Thanks a lot!
Having trouble streaming theses videos, it's timing out. Wondering if these videos are also available else where?
Thanks,
Waheed
What I find very puzzling in this piece is omission of the fact that Win 8 RTM is now out for MSDN suscribers, and also has a 90 day trial version out for anyone.
The "catch-22" here is that you can't install the latest VS 2012 for Win 8 RTM, full version, unless you have an MSDN sub. "Mere mortals" get VS 2012 for Win 8 express version.
As some who paid for a "real" licensed VS 2010 Pro, and Win 7 Pro, in a S.E. Asian country where piracy is ubiquitous (no: I do not think I deserve a "medal" for that), I find it disturbing that there seems to be no announced reasonable upgrade path announced to VS 2012 Pro release, let alone VS 2012 Pro release for Win 8's release version.
I'm not about to use an express version of VS 2012, after having purchased VS 5,8, and 10 !
From my point of view, this policy ... or, lack of policy ? ... discourages developers who want to be early experimenters with full tools for Win 8.
thanks, Bill
Thanks!
It's referenced in the "Additional Steps in Visual Studio 2010" section of http://msdn.microsoft.com/en-us/data/jj206878
Yet you can't install that extension for VS2010.
Also, are there plans for Project Templates without OAuth, like the ones that existed before?
I am not seeing any support for building SSIS packages or other projects associated with what was formerly known as BIDS.
Any thoughts on this is appreciated.
Thanks,
Mike
I noticed in the JS editor video that when you typed /// the editor did not insert the C# style XML comment snippet (with summary and each parameter templated out), was that a conscious decision? Can we add it?
It's coming. We are currently working on a prototype.
"Error
---------------------------
Visual Studio Express 2012 for Web is not compatable with pre-released versions of Visual Studio 2012. Please uninstall any pre-released versions of Visual Studio 2012 before proceeding."
I find this odd since I am installing an Azure package, not VS Express.
best, Bill
VS2012 works fine on Windows 7 and all these OS's:
http://www.microsoft.com/visualstudio/11/en-us/products/compatibility
Supported Operating Systems
Windows 7 (x86 and x64)
Windows 8 (x86 and x64)
Windows Server 2008 R2 SP1 (x64)
Windows Server 2012 (x64)
Maybe the situation I am referring to is not being understood. The issue is this, as this MS Connect report has it (https://connect.microsoft.com/VisualStudio/feedback/details/758294/vs-2012-wont-install):
After installing the new VS2012 RTM bits on a Windows 8 Release Preview OS, after the install took all the time to completely download and install, upon completion, it says:
"Error: The .Net Framework installed on this machine does not meet the minimum required version: 4.5.50709."
Well, okay, so that is not cool, but we all then go and try and download the most recent (as of this week) 4.5 version, but it immediately says it can't install, you already have it.
So I heard that the problem was (according to this MSDN forum, http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0164dc4a-4baf-4ef0-be56-ad2af67faa37, YOU are the source of this claim!, though perhaps erroneously) that you can't install it on Window 8 Release Preview.
Which I think, IF that was the case (is it?), that it is a really lame decision, bec if it works on Win7, why not on intermediate Windows 8 builds? Any of us junkies who would install beta versions of Win8 -- these are not people to worry about that they would not update to the final version WHEN it is ready for us! (esp. at the block buster upgrade price!).
So is this the case, was this done on purpose (no VS2012RTM on Win8RP), OR, is this just a bug?
However, what will then happen when you install VS2010 SP1 afterwards? Will it then change some of the .NET stuff back to 4.0? Will unit tests work?
This in-place upgrade really is a mess. Also this resulted in a butt load of warnings in VS2010 when building that did not occur before.
If you're going to fully adopt JavaScript as a first class language I feel you should follow the accepted paradigms
I had the RC version installed in D:\Program Files but uninstalled it before installing the RTM.
I've searched the registry and removed all the keys that I could find.
Any help?
Anyone else getting something weird where any change to an .aspx or .aspx.cs at all result in an entire app domain restart?
I do have a question on the Async one, though:
How are you able to return View() when the method signature forces you to return Task<ActionResult>? What allows you to do that?
I'm reading more and more about oauth and kinda have a problem grasping the nuances between that and the ability to do the same with wif. Since I see that Microsoft embraced Oauth to the point as to integrating it in their templates and that it's almost hard to find WIF info from Microsoft that dont dates less then 2 years... Is the claims based going down the drain ? What would be the best way to outsource the authorization mecanism to a third party... Using WIF/claims based stuff or with Oauth.
If Oauth is the "good" way to go... Where can I find a place on how one can develop and create a Oauth credential store ? Does it supports WS-Federation ?
So many questions my oh my... Sorry about that.
A post or hanselminutes podcast on WIF would be great by the way.
Great article. Great videos. I watched them all.
A question re the MVC 4 video:
How do I create the hybrid web/mobile app like the one you demo toward the end of the video?
The Internet project template doesn't have mobile views or the view switcher and the Mobile project template doesn't have them either (nor the oAuth code.)
Thanks
Daniel
1.Download the .net 4.5 installer and run it with /x to extract it.
2.Go to the extracted folder and open ParameterInfo.xml.
3.Remove anything between <blockers> and </blockers>
4.Start setup.exe and install.
Really enjoyed your demo videos! (and your blog podcast for that matter :)
But just to tease you
I really love how you Magically shaved off another 130 miliseconds of the "Async and Await" video.
(going from displayed value og 1.133 sec to 1.003 sec)
Keep up the good work!
1.Download the .net 4.5 installer and run it with /x to extract it.
2.Go to the extracted folder and open ParameterInfo.xml.
3.Remove anything between <blockers> and </blockers>
4.Start setup.exe and install.
resulted in the error
Setup encountered an unexpected error in the package contents
I'd love to watch these videos. Please look into why the videos are not playing in their entirety.
I have an amazing connection to the internet so this is not a buffering issue on my end.
after my team upgraded to VS 2012, ALL our projects faced the same issue as in the below URL
http://stackoverflow.com/questions/12489749/linq-to-ef-join-throws-index-was-out-of-range-after-upgrade-from-vs2010-to-vs2
I am from india.I have problem when i connect sql server 2012 to visual studio 2010 that time the error is occured means its not compatible with visual studio 2010.
so please give me the solution about that problem and one more thing can visual studio 2012 is compatible with sql server 2012.Please send me mail if possible.
Thank you.
I am not able to play videos. Page is showing message "No video with supported format and MIME type"
Thanks
FYI, the Javascript Editor video link plays for one second and then dies. Other links seem to be fine.
Win8 Pro (which is completely awesome) and IE from the start screen (also awesome) and neither the HTML5 nor the Silverlight version works.
Amer and Bishnu - Try saving them locally by right clicking on the download links?
Thanks,
Michael
Is there any location to download the samples presented in the video?
thanks
Comments are closed.
I had hoped with the Power of Azure, this wouldn't happen. Oh well!