Scott Hanselman

Features NO ONE NOTICED in Visual Studio 11 Express Beta for Web

March 20, '12 Comments [57] Posted in ASP.NET | ASP.NET MVC
Sponsored By

There's a bunch of new stuff in Visual Studio 11 Express for Web that I suspect not everyone noticed. Remember that Express is our free version of Visual Studio. Sometimes I hear folks complain that Express isn't advanced enough, even though its free.

Unit Testing is Built-into Visual Studio Express

For example, no one noticed that Unit Testing is in Express. You can add a Unit Test to an existing Web Solution. I'll add a Unit Test Project, the right click on References and add a reference to System.Web.Mvc to my ASP.NET MVC Application.

Note the new Add Reference dialog? It's got a search box, it's multi-threaded, and I can add multiple references by checkbox. That's new stuff, friends. Subtle, but it is one of those "death by a thousand tiny cuts" things that the team is trying to fix.

Reference Manager

I can setup a bunch of tests for my ASP.NET MVC application and run them by right clicking "Run Tests."

Unit Test Explorer in Express

Browser Chooser/Launcher in the Toolbar

When you hit F5 or Ctrl-F5 to check out or debug your website you often want to try it in different browsers. You can easily switch between browsers now, directly:

Browser Switcher built into the toolbar

Image Thumbnails on Hover in the Solution Explorer

If you hover over an image in the Solution Explorer you'll see a preview thumbnail of that image.

Hover preview

CSS Color Picker built-in

Not only does the new CSS editor support lots of snippets like @media as well as outlining and vendor-specific prefixes, it also has a lovely color picture that is smart about your color scheme. Hint: select a color in a CSS file and press Ctrl-J.

CSS Color Picker

Quick Launch

You know how you're always going Tools | Options | Text Editor | Languages | JavaScript | References, blah blah blah? Now just press Ctrl-Q and type "references" (or whatever), and go right to it. Don't remember how to get there, just go there.

Quick Launch

Smarter JavaScript references

If you do make it into the JavaScript references dialog, check out the relative references.js file. You can put in your global-scoped JS files with documentation and get nice JavaScript intellisense WITH documentation...

JavaScript References

...that looks like this. That's lovely jQuery documentation, as you type.

Great JavaScript Intellisense

Page Inspector

Sometimes when you get partial views inside master pages with editor templates and other nested things in a large application it can be hard to figure out the answer to something simple like "what line of code made THAT line of HTML?" There's a new feature built into Visual Studio Express for Web called "Page Inspector."

It's hard to explain, so here's an animation. You hover over an item in the browser and it shows you what line of code make that HTML. You can also do live CSS editing.

Round Tripping

You know how you never want to install a new version of Visual Studio because you're afraid it will upgrade your existing project files and mess up the whole team? Round Tripping works now between Visual Studio 2010 SP1 and Visual Studio 11. Here's the same .NET 4 application opened in the VS11Beta and in VS2010SP1. Oh, and by the way, don't sweat the color thing, I'm confident it will turn out OK.

VS2010 and Dev11 living together and no one is freaking out

Note the dropdown in VS11 Beta. I can develop any .NET app from .NET 2 (!) and up with the one IDE. I'm using the beta as my main IDE currently.

IIS Express

IIS Express is now the default website host inside of the older "ASP.NET Development Server." That means you can test on a real IIS without being Admin. It runs when you run your app, then it goes away. Things that works in IIS Express should work the same way in IIS because it's the same core web server. As my friend Damian showed me, I can even test under SSL with just a doubleclick:

SSL Enabled = True

The Big Secret Thing No One Noticed

I'm surprised no one has figured this one out yet, but I'll post on it a little more as I start to share more of the "One ASP.NET" plan. Check out Tools | Extensions. See those template packages? ASP.NET templates (those are the File | New things) are actually extensions...VSIXs, in fact. We can update them as we like now. ASP.NET can do interesting and innovative things (and NuGet plays a part in this) without waiting for a new version of Visual Studio. Starting to see why that'd be useful?

ASP.NET Templates are extensions now

That's just the stuff I can think of off the top of my head. Point is, better free tools and more open source continues to be the goal with our team. There's lots more details and videos up at http://www.asp.net/vnext. You can get Visual Studio 11 Express for Web here. Let me know if you find any good bugs and I'll get them straight to the team, or better yet, put feedback on our UserVoice site.

Related Links


Sponsor: My thanks to DevExpress for sponsoring this week's feed. There is no better time to discover DevExpress. Visual Studio 11 beta is here and DevExpress tools are ready! Experience next generation tools, today.

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.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web
Tuesday, March 20, 2012 7:54:00 AM UTC
Having Unit testing in the Express SKU is huge, everyone should test!
Mike
Tuesday, March 20, 2012 8:01:01 AM UTC
Awesome!!
Tuesday, March 20, 2012 8:06:34 AM UTC
Does this mean that the Unit Testing Explorer is now available in Visual Studio 11 Professional too?

If so, has any work been put into making it more easily extensible (to allow third party testing frameworks to add their results to it)?
Tuesday, March 20, 2012 8:08:08 AM UTC
Yes, Unit Testing is in Express and up. Also, all the SKUs above Express support pluggable unit testing, so you can add in NUnit, MbUnit, etc.
Tuesday, March 20, 2012 8:30:18 AM UTC
Browser Chooser/Launcher in the Toolbar was really needed (i used browser switcher before) and Page Inspector is great addition, such a a simple yet powerful/productive tool.
Mata
Tuesday, March 20, 2012 8:52:46 AM UTC
I think sometimes it takes a post like this to point out how amazing the free offering of VS is. It's a massive olive branch from Microsoft (IMO) - I wonder how many developers paying for the full versions only use the features of the free version.

Also, I really like how VS is becoming more modular, so different areas can iterate at different speeds, without needing to move at the speed of the slowest all the time.

Props to the team, Scott. Very much looking forward to using this in production. (and I *like* the colour thing!)
Tuesday, March 20, 2012 10:33:19 AM UTC
Oh wow, looks like I don't have to shell out money for advanced editions ever, though I have always lived with express.
The most I liked in order of preference, Javascript intellisense, Browser launcher, css designer.

Having a similar kind of feeling when we got new books after each passing year :)
Tuesday, March 20, 2012 11:21:28 AM UTC
For me the best feature is also the pluggable unit testing, so you can add in NUnit, MbUnit, xUnit etc. And seems to be faster than the previous version. The new Metro UI looks clean but I am still getting used to the new Metro icons. Its hard distinguishing them from each other.
Tuesday, March 20, 2012 11:29:44 AM UTC
I would like to know if database projects synchronize / deploy schemas between local and sql azure databases.
Craig
Tuesday, March 20, 2012 12:25:40 PM UTC
The ability to use extensions is great! However, will it be filtered to a pre-defined subset of extensions or be open to 3rd party extensions like CodeRush and ReSharper?
Tuesday, March 20, 2012 12:35:59 PM UTC
Actually, I did notice. That is, everything except for the unit testing in Express, but then, I don't use it anyway. :)
Tuesday, March 20, 2012 12:52:27 PM UTC
Why make the icons for test failed/succeeded red and green? Wouldn't it be so Metro to make them black. Color is so yesterday.
Tuesday, March 20, 2012 1:04:01 PM UTC
I have a better title for this post: Features ::: NO ONE NOTICED :::::::: in Visual Studio 11 Express Beta for Web

Just kidding. ;-)
Scott B.
Tuesday, March 20, 2012 1:33:22 PM UTC
Hey Scott,
If I build my app with VS 2010 and then with VS11 my resource files get autogenerated and the .Net version changes slightly

-// Runtime Version:4.0.30319.261
+// Runtime Version:4.0.30319.17379

Since the rest of my team is still on VS 2010 this is the only thing stopping from using VS 11 as my main IDE.

Is there anything I can do?
Tuesday, March 20, 2012 2:11:38 PM UTC
"Round Tripping"

If only .Net 4.5 didn't break our app and cause me to spend a day uninstalling everything and reinstalling to remove the stuff .Net 4.5 put on my machine.

Argh!

Tuesday, March 20, 2012 2:16:25 PM UTC
There is also the very cool new diff/merge capabilities :)
Diff File made easy with VisualStudio 11

Still concerning VS11, Scott, please use your influence to bring back color in VS11, at least for icons!

When I read that colors have been removed to let the user focus on its content, while the Solution Explorer, that clearly represents the user content, is totally Black&Gray and unreadable at a glance, it looks like some dogmatic people took the power in the VS team. A catastrophe is about to happen if this B&G design reaches RTM :o/
Tuesday, March 20, 2012 2:45:31 PM UTC
Browser Chooser/Launcher in the Toolbar -> This feature almost makes me want to use VS11 beta as my main VS install! Tear in eye
Mike
Tuesday, March 20, 2012 3:10:56 PM UTC
Be careful with hoping that 2011 beta will run side-by-side with 2010 SP1. The Async CTP, for one, conflicts in a bad way with 2011 beta and .NET 4.5.

I ended up restoring a fresh OS image when I couldn't restore my environment after installing 2011 beta.
Tuesday, March 20, 2012 3:21:16 PM UTC
I also notice that VS11 Express beta has support for VC++ x64 targets and it works. Oh happy day!

Meanwhile, when will we know what is going to be missing from VS11 Express? I notice, for example, that there is no template for an empty (I mean *empty*) initial C/C++ console project in the beta.

I don't mind doing command-line builds to get around that, but as an inviting tool for C/C++ beginners and folks learning from books, that is a big fail.
Tuesday, March 20, 2012 3:30:14 PM UTC
Thanks Richard. Yeah almost sounds like the best way to beta test is on a seperate os image.
Mike
Tuesday, March 20, 2012 3:30:39 PM UTC
I have noticed one of them and few other.
http://www.dotnetstep.in/vs-2011-beta-ui
Tuesday, March 20, 2012 3:38:45 PM UTC
Big secrets? See also: The CSS property "bikeshedding" appearing in Intellisense, at least in full-on Visual Studio 11 Beta.

wat.
Jesper
Tuesday, March 20, 2012 3:41:38 PM UTC
Wow! on mouse over we can see image Thumbnails and color picker in CSS editor. Really VS11 is awesome this is what current developer need!

Thanks for share!
Tuesday, March 20, 2012 3:45:46 PM UTC
Having a possibility of running a single test per time or all tests from a file, and not from all your solution would be perfect, but no... WE GOT NO OPTION LIKE THAT !!!
Tuesday, March 20, 2012 4:07:30 PM UTC
Can't say enough how great it is to see NuGet in the Express Edition.

Quite the dilemma Microsoft has trying to fight the Ruby-ish world by balancing a truly useful free version of the dev tools with giving away a solid revenue stream.

Established corps have no problem paying for VS, but start-ups are leery of costs. Bizspark helps but can feel to some like a tasty treat with a hook in it.

I look forward to trying this version of VS 11!
Tuesday, March 20, 2012 5:24:40 PM UTC
VS11 is really turning out to be completely awesome. Thanks for sharing all the tips, one that I'd like to add is that there is now full intellisense on all the WCF options in the config files too!
Tuesday, March 20, 2012 6:03:20 PM UTC
Justin - As I understand it, there is still restrictions on Extensions in EXPRESS. There are some internal extensions like NuGet and ASP.NET and can get in there.

Bob - Break it how? I need details to fix it. The only breaking changes I've heard about were when folks were using reflection to talk to privates and internals that moved.

Patrick - Awesome! I didn't know there was a /diff option!

Jesper - "bikeshedding" is a real CSS value: http://www.w3.org/blog/CSS/2011/03/15/resolutions_152/



Tuesday, March 20, 2012 6:27:25 PM UTC
@Jesper

Actually, the W3C recently renamed the bikeshedding property again so we are removing it from future releases. Too bad, I liked that property :)
Tuesday, March 20, 2012 6:39:00 PM UTC
glad to hear someone is confident about the color issue!
Tuesday, March 20, 2012 8:51:14 PM UTC
Oh my God! Finally MS got around the references dialog. It about time guys, actually it is several years too late. Anyways I'm glad the disaster is gone and you can focus on removing other disasters plus chase your competition cause there are many things in other IDEs that VS lacks and when you consider the price (VS is actually very expensive) your expectations rise.
tc
Tuesday, March 20, 2012 8:54:10 PM UTC
tc - ;) The free version of VS is pretty functional, as I think I mentioned here. The pro version is something like $500 so I think for a professional developer it's reasonable.
Tuesday, March 20, 2012 10:37:17 PM UTC
"Oh, and by the way, don't sweat the color thing, I'm confident it will turn out OK." -- I feel you saw some previews of the new colors and don't wanna share...

"Sometimes I hear folks complain that Express isn't advanced enough, even though its free." -- Would be nice to have a pro-like version (being able to have ad-ins is the only thing one would miss) only for open source projects.

"IIS Express is now the default website host" -- while nice, I've seen it crash / hang VS way more than Cassini; hopefully that's fixed.

This version has a lot of exciting small / useful features. If we could just fix the colors/icons it would be great :-) Why not just allow us to theme the VS, too much work?

Thanks.
Peter
Tuesday, March 20, 2012 10:38:01 PM UTC
How did you get intellisense for jQuery documentation working like that? I've tried many different ways using the references with no luck on getting the documentation.

I get "Intellisense was unable to determine an accurate completion list for the expression"

Thanks.
Tuesday, March 20, 2012 10:45:28 PM UTC
Thanks a lot, Scott. Was curious when I blogged about _references.js file ( http://bit.ly/_referencesjs ) thinking it must be coming from somewhere, and now your post explains it pretty well.
Tuesday, March 20, 2012 11:17:51 PM UTC
+1 for browser chooser in toolbar
PaulJ
Wednesday, March 21, 2012 12:43:33 AM UTC
Can IIS Express host a x64 web? I have a problem because I debug in x86 with my Oracle.DataAccess.dlls then I have to change and publish the x64 versions.
Wednesday, March 21, 2012 3:03:11 AM UTC
Does that mean ASP.NET Web Forms are now completely out of band?
Wednesday, March 21, 2012 3:17:28 AM UTC
Hi Scott,

The browser is a welcome addition (though past versions of VS do something similar). I'd like to make one suggestion though.

I use multiple Firefox and Google Chrome profiles. One for regular browsing and another for web development/debugging.

For ex: To launch a profile named 'dev' in Firefox, you'd use

firefox -p dev --no-remote in the shortcut/command line

This ensures that I don't mess up my history/profile/cookies etc with my development activities. However, the feature you've described launches the browser with no command line parameters.

So, is there a way I can add/update/customize the parameters used to launch the different browsers? And if not, is too late to suggest this as a feature request for VS11?
Wednesday, March 21, 2012 5:58:48 AM UTC
The new Metro UI icons are hard distinguished from each other. And the whole UI looks PALE, no contrast at all. Can make the new VS theme/skin selectable, so that we can choose other theme?
Terry
Wednesday, March 21, 2012 7:19:57 AM UTC
Wow! I thought the VS team would never realize how painful is to switch from one version to another, I mean, they had to see all those projects with project-vs2k10.sln and project-vs2k8.sln. I think this is one of the biggest things for me! Most of the others are very nice also, but this one saves huge amounts of pain... Thanks for sharing!
Wednesday, March 21, 2012 8:27:23 AM UTC
Amazing, lots of stuff coming in vs2011, but I wish vs2011 could have the ability to play around with collection or search in them like BugAid, that really can be "mind blowing build-in feature".
Wednesday, March 21, 2012 9:25:44 AM UTC
The new Browser Launcher toolbar button is brilliant and sorely needed, I can't count how many times Visual Studio keeps forgetting what I want my default dev browser to be and having to dig around in the current dialog box to set it back to what I want.

Is this tied to the Quick Launch bar as well though? Thanks to your previous post about simplifying your IDE I've removed all my toolbars but really want access to this feature quickly.
Wednesday, March 21, 2012 12:21:01 PM UTC
Hi Scott,

Do you know if its now possible to execute ms test projects without visual studio installed?

This is useful in a continuous integration environment.

Thanks



Wednesday, March 21, 2012 2:12:11 PM UTC
That's why VS is and will still be the best IDE by far!
Wednesday, March 21, 2012 6:30:59 PM UTC
Anton - You should be able to run mstest.exe from the command line, yes.

Aidan - Not yet, but we're looking at that. Parts of ASP.NET like Web API are out of band and can be used in Web Forms.

x64 web guy - Yes and no. No, there isn't an x64 version of IIS Express 7.5, but YES there is both x86 and x64 versions of IIS Express 8.0, coming soon. You can see the IIS Express 8 READ with details.
Thursday, March 22, 2012 7:40:18 AM UTC
No - one noticed because all we wanted is a faster, slicker Visual Studio. Thankfully we got it...although it can be improved.
Thursday, March 22, 2012 11:55:52 AM UTC
As testing is allowed in the express edition, why is the checkbox in the mvc4 project wizard still greyed in VWD 11 express?
fhallot
Thursday, March 22, 2012 1:53:30 PM UTC
I have a idea for VS11 improvemnt.


suppose I have saved image in Expression design and put image src tag. when I click browser and try to see the image image is not their.

For doing this I need to click refresh files in Sollution explorer.

Can you made a thing then I am able to browser without clicking refresh Everytime.


When my neighbour click most of time on refresh in sollution explorer I have noticed them what they do.

Thanks for this post.I like to hear from you on this.
Silver cookie.
Thursday, March 22, 2012 5:47:56 PM UTC
fhallot - Testing will be enabled in MVC under Express in the final version. It was a schedule thing for the beta. Thanks for noticing!
Thursday, March 22, 2012 7:29:02 PM UTC
Great new features. I like new VS 2011 :-)
Thursday, March 22, 2012 8:32:38 PM UTC
>>Things that works in IIS Express should work the same way in IIS because it's the same core web server.
That's not really true. The two biggest problems folks have when deploying their apps to a reall IIS servers is :
1. IIS Express/Cassini run at the root level - so resources added assuming that fail on IIS.
2. IIS Express/Cassini are usually run as admin, not as a service with the application pool identity.
Developers still need to take a few minutes to test under the reall IIS server, which is simple on Win7/8 see http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds.aspx
Thursday, March 22, 2012 10:35:48 PM UTC
Unit testing in the express versions is a nice addition as it helps beginners to write good code from the start.

I'm not completely sold on the design and apparently I'm not the only one, but maybe when we get used to it, it's not so bad...
Friday, March 23, 2012 8:32:55 PM UTC
Great new features :)

We can also submit our dotnet related article links on http://www.dotnettechy.com to improve traffic
Saturday, March 24, 2012 10:25:21 PM UTC
@Scott Hanselman: no Scott, the VS2010 Pro version (since MS dropped the cheaper Standard version starting from 2010) is nothing like about 500USD in my country.
The price is more like 1214 USD for me, see the price at one of the most popular computer shops in Poland: http://www.komputronik.pl/product/98243/Oprogramowanie/Programy_PC/Microsoft_Visual_Studio_Pro_2010_Win32_English_BOX.html
Now when you compare it to JetBrain's IntelliJ IDEA which costs 474 EURO that in my case gives me equivalence of about 628 USD I'd say that Visual Studio is pretty expensive.
Now IDEA is generally considered the best Java IDE which is exactly what VS is for .NET so I guess it's fair to compare their prices.
I don't have any direct experience with IDEA, but I have with other IDEs from JetBrains and I found them packed with features that are in VS only when you extend it with R#.
So to me it feels like every JetBrains IDE has R# for a given language built-in.
Also I found JetBrains IDEs to be very well thought in terms of usage and productivity (i.e their settings windows has a search built-in so you can quickly find what you need).
Now back to IntelliJ IDEA, since this is their oldest IDE and the building foundation for the other IDEs (they have a common "framework" for IDEs) I'm expecting IDEA to be full of the features I found in JetBrains' other products like WebStorm, PyCharm and RubyMine.
Also due to the Java nature it must support more frameworks and languages, unit testing tools, etc. and still manages to provide features that VS lacks (cause that's the reason R# exists)
My biggest issue with Microsoft is probably making things 80% complete and bragging about them everywhere.
A good example is JavaScript support. When VS2008 came out the JS experience was supposed to be great while in reality the JS support was pretty basic.
MS benefits from the fact that most .NET devs do not peek at their "competittion" and take things for granted and swallow the MS marketing message and think to themselves "what a great JS support we have now".

I suppose every IDE has its strong and weak points but over all VS is pretty expensive.

BTW. Why MS keeps calling VS the 2011? It's 2012 already and there's even no release date yet.

Links:
http://www.jetbrains.com/idea/index.html
http://www.jetbrains.com/idea/buy/index.jsp
tc
Sunday, April 29, 2012 12:15:34 PM UTC
@tc in Spain VS 2010 Pro is 534 EUR, which at today's rates is 708 USD, so not quite as bad as your situation - but still expensive. This price is from the Microsoft Online Store, but VS 2010 Pro does not seem to be available from them, in Poland, for some reason.

I think MS needs to stop trying to milk developers outside the USA quite as much. Many small independent developers end up generating a lot of revenue for MS at the end of the day.
Friday, May 18, 2012 10:26:58 AM UTC
Hi,
How about attach to process in the Express editions so I can debug my t4 templates? Or am i missing something...

Cheers,
O
Tuesday, February 26, 2013 7:52:16 PM UTC


In this google group for foundation, i was asking if i could use scss with visual studio express. The answer came back as no. Is it possible that i can use scss extensions with vs2012 express?

i am to new to scss to know if the problem is me or the platform.

i install foundation using compass but when i preview in browser with vs2010 it does not seem to acknowledge the scss files.


Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.