Scott Hanselman

FREE: Visual Studio Express 2012 for Windows Desktop

September 13, '12 Comments [32] Posted in Open Source | VS2012
Sponsored By

Visual Studio Express 2012 for Windows DesktopWhen the Visual Studio 2012 free versions were originally announced the first thing I noticed was that they had switched from a language-specific model (C# Express, VB Express, etc) to a target-specific model (Windows 8, Web). However, I was very surprised (and disappointed) that there was no free way to make Console Apps, or Windows Forms apps, or anything for the Windows Desktop. I wasn't the only one who thought this was a problem. Shortly thereafter (with a lot of people pushing) Soma announced there would be a "Windows Desktop" Express version for free. He said:

...we heard from our community that developers want to have for Windows desktop development the same great experience and access to the latest Visual Studio 2012 features at the Express level.

Today, I’m happy to announce that we will add Visual Studio Express 2012 for Windows Desktop to the Visual Studio 2012 family. This will bring to the Visual Studio Express family significant new capabilities that we’ve made available in Visual Studio 2012 for building great desktop applications.

I'm glad folks realized that no-cost desktop software development is important. Open Source projects need free tools like the Express SKUs. Even better that the the Express Desktop SKU gets the new 2012 features as well.

Today Visual Studio has made Visual Studio Express 2012 for Windows Desktop available and you can go download it now free. The best part is that this one SKU supports C++, C#, and Visual Basic together. With this one free version you can make WinForms, WPF, Console or Class Libraries with any or all of Visual Basic, C#, as well as Win32 projects, class libraries, and CLR apps using C++. You can also, of course, combine projects over multiple languages into a single solution. You can target both .NET 4.0 and 4.5.

NOTE: You might wonder, what about a free F#? Why isn't F# included? We've got a free download to add F# support to the free Visual Studio Express 2012 for Web!

Related Links

While Express SKUs don't allow arbitrary add-ins (you need Pro for that) the free SKU does include Unit Testing, Code Analysis, as well as the NuGet package manager. It's a bit of a nice coup for my little group that NuGet is now included in ALL Visual Studio 2012 SKUs, even Express ones. Package management is finally happening in .NET.

In the screenshot below I've added a C++ Console app, a Window Forms C# app and a C# Console to a single solution in VS2012 using Express for Windows Desktop.

image

Just to illustrate one of the reasons I think a free "Desktop" SKU is so important, I wanted to share a cool open source project I found recently called Topshelf. It's a library for making Windows Services easier to write using .NET. It's up on GitHub under an Apache license. The easiest way to get Topshelf is with NuGet with simply "install-package Topshelf". Topshelf has some impressive documentation as well, especially for an open source project!

Here's a simple Windows Service with a basic heartbeat timer using Topshelf:

public class TownCrier
{
readonly Timer _timer;
public TownCrier()
{
_timer = new Timer(1000) {AutoReset = true};
_timer.Elapsed += (sender, eventArgs) => Console.WriteLine("It is {0} an all is well", DateTime.Now);
}
public void Start() { _timer.Start(); }
public void Stop() { _timer.Stop(); }
}

public class Program
{
public static void Main()
{
HostFactory.Run(x => //1
{
x.Service<TownCrier>(s => //2
{
s.ConstructUsing(name=> new TownCrier()); //3
s.WhenStarted(tc => tc.Start()); //4
s.WhenStopped(tc => tc.Stop()); //5
});
x.RunAsLocalSystem(); //6

x.SetDescription("Sample Topshelf Host"); //7
x.SetDisplayName("Stuff"); //8
x.SetServiceName("stuff"); //9
}); //10
}
}

Topshelf even has nice Log4net and NLog integration. Anyway, this is just the kind of powerful, useful, and interesting open source library that could be helped by a free Express SKU for Desktop. I'm not involved directly (yet ;) ) in making decisions this high up, but I (and many, many others) inside and out continue to advocate for balance. In this case I'm very glad that the decision was made to ship this SKU and I hope you all find it useful whether you work in open source or in education.

There's more details over at the Visual Studio blog and the team is watching the comments.


This week's sponsor: Be part of GENERATION APP. Your Idea. Your App. 30 Days. Begin your 30-day journey to create a Windows Store style app and talk 1-on-1 with a Windows 8 app development pro. Get started 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
Thursday, September 13, 2012 7:50:34 AM UTC
So the F# add-in works only with VS2012 for the Web? Weird, considering it was announced only yesterday, couldn't they wait for desktop:) ?

Overall, the fact it's not divided into languages versions seems damn good to me, and the fact it contains some useful basic additions makes it even better.

Keep up the good work!
Thursday, September 13, 2012 8:20:21 AM UTC
Note for all, which are missing the syntax highlighting...
http://stackoverflow.com/questions/12197771/no-syntax-highlighting-or-intellisense-for-c-sharp-files-in-vs-2012

I removed and oh magic... highlighting is back
incomprehensible!
Matthias
Thursday, September 13, 2012 8:53:55 AM UTC
We've built in our company some basic UI tooling for some script automation tasks, and the Express edition is therefore more than sufficient for our basic use. Glad to know it is back!
Thursday, September 13, 2012 9:11:37 AM UTC
So Web api and Entity Framework should work?
Thursday, September 13, 2012 9:36:19 AM UTC
Nice information...thanks to share
Thursday, September 13, 2012 10:18:50 AM UTC
This is great news for open source projects.

One question though, when you say SKU, I think "Stock Keeping Unit" - is that the definition you intend here?
Thursday, September 13, 2012 11:26:04 AM UTC
I have long thought that MS should make more powerful versions of VS available for free (or at least for nominal cost). I understand that developing great tools costs real money. But I suspect one of the barriers to wider-scale adoption of the MS stack by the OSS community has simply been the greater availability of first-class tools for other platforms, compared to the (at least perceptually) constrained VS Express offerings. I insert "perceived" in parens because I know that the Express version actually contains sufficient functionality for most projects.

I was concerned when I saw that MS was limiting VS2012 Express to the "Web" and "Windows 8" platforms. I think this addition is a smart move. As a user of the full pro version, I make these points not because I want "more for free." But I remember being daunted by the cost of entry to get full-function tools for working in the MS ecosystem, as compared to what is available elsewhere.

Going forward, it would be great if MS were able to create an OSS-targeted version of the VS toolkit, and possibly a suitable licensing strategy such that the developer or team were able to access everything necessary to produce large scale OSS projects, so long as the project was released under an OSS license.

Or something.

Here's to the evolution of a first-class development platform, either way!
Thursday, September 13, 2012 3:03:55 PM UTC
I was also surprised by the Windows 8 only Express, but only walked away in sadness. I'm glad to hear people spoke up and something came of it!

I cut my web development teeth on my own with PHP Development Tools for Eclipse, and found that it did what I needed. Later I got into .NET at a new job, and developed a desire to write .NET side-projects at home without fear that the man might do something nefarious. This led me to use Express instead of employer-supplied tools. VS Express is tight in a way I could not get Eclipse to be at that time (and possibly out of ignorance).

If there is a complaint it is that VS Express is too tight, and yet with the inclusion of NuGet that complaint is marginalized (though I do wish I could install a T4 highlighting extension). Still, VS Express comes setup with just what you need like easy-as-falling debugging, a ready to run web server and database, and now includes unit testing (thank you very much for that, I love NUnit and the tools that support it, but to be able to test and step through code in unison from Express is a fantastic gift)!

I have found that Express gives me all the freedom I need for personal projects, all the features I enjoy, and if ever I truly need solution folders then surely my personal projects are bringing in some money and the purchase of another edition can be justified. Phil, the Scotts, and others are to be applauded for contributing to the greater development community.
Thursday, September 13, 2012 5:48:16 PM UTC
Thanks for pushing for this Scott. There is definitely still a place for rich client applications on the Windows platform, and being able to build them using VS 2012 is very welcome.
Thursday, September 13, 2012 8:04:10 PM UTC
GingaNinja - EF will work anywhere it should work and Web API will work in Express for Web.
Friday, September 14, 2012 4:36:47 AM UTC
@Jeremy Cook

Well, yesterday I opened sln that was made in Pro version, and Express was displaying solution folders...unless it was just my dream, need to recheck:)h
Friday, September 14, 2012 1:28:45 PM UTC
I don't really see why we need these different versions.

If i'm testing out how to write some windows 8 metro app that also has a desktop version, that gets it's data from my own asp.net web api, I don't want to go trough the hassle of installing 3 different Visual studio editions, with a different configuration

Can't we just get a "visual studio express" that has all express editions in one?

Friday, September 14, 2012 3:44:59 PM UTC
Michiel - Baby Steps. I totally agree with you and I've made the same argument. They argument, I think, is that you're describing the complex system a pro developer would make and they'd want their $499.
Friday, September 14, 2012 9:31:16 PM UTC
I never put any MS with the word "Express" in it on my computer. I would rather go work at Macdonalds on the weekend to make the money to buy the pro edition. I'm too sensitive to "missing functionality" surprises at my ripe old age.
John A Davis
Sunday, September 16, 2012 1:14:53 AM UTC
You can install silently with no restarts via chocolate http://chocolatey.org/packages/VisualStudio2012WDX
Wednesday, September 19, 2012 8:20:40 AM UTC
Can i take this opportunity to state that I really hate VS2012 and even more Windows 8? Microsoft's really losing it... Although I love(d) C#/.NET/MSSQL i feel as being pushed to other platforms... Sad. And it's not just me lot's of collegaes and friends of mine feel the same way. Scott, please use your influence to at least talk to MS people that in the community lots of people feel this way. It's like they don't give people what they want, they decide what they feel that people should have. Now this works perfect for Apple, but alas, MS is not Apple.
Someone
Tuesday, November 06, 2012 5:27:13 AM UTC
@Someone above...

Having been to DevConnections last week, and worked with VS2012's Ultimate RC for some months prior, I can tell you that there's a boat load of really great stuff in VS2012, and that MS gives a lot of things that at very least I want. I know a whole bunch of people who are of my same mindset. So I have to wonder (because you weren't anywhere near specific) what it is that bothers you about VS 2012 and about Windows 8. What could you possibly expect Scott to relay? A general feeling of vague complaint from an unsubstantiated "lot of people?" How could that possibly lead to any kind of improvement, let alone the kind that would change your opinion?

I'm also very happy about how much free info is out there for people to learn this technology. Scott -- you're a really big part of that.

The only thing I can claim (at the moment) to be a bit disappointed by is how difficult it seems to be to find specifics about what can and can't be done by the express editions. What are its capabilities, and more importantly its limitations? There's a semblance of what I'd be looking for in the 2012 editions comparison chart. Maybe a chart pitting the Pro version vs Express?
Someone Else
Tuesday, November 27, 2012 10:22:55 AM UTC
There is a big "worflow hole" in the latest releases of VS wich has not been taken care of yet. I hoped that with all the workflow improvements in VS 2012 this would have been addressed as well (still hope in a Service Pack...). Simply put you cannot go with a keybind from the code behind view to the markup view. You always have to code > designer > markup > code and that's quite annoying since most web devs won't use the designer at all but just switch from code-behind to markup when working with aspe.net sites. This possibility was present in earlier releases of VS but then has disappeared.
If you do a quick search on the web you will see many coders complaining for this simple quite powerful workflow improvement.
Please push Microsoft to bring it back in :)
Tuesday, November 27, 2012 6:56:12 PM UTC
Max - That bug is in our list to fix. Thanks!
Saturday, December 01, 2012 6:17:42 PM UTC
I am a beginner, with Express installed. Would like to use it, but where are the manuals? Yea, there are some subjects treated on MS's website, but that's not enough. I'd like a full description of the functions. CSS is not a problem, properties and usage are discussed on many sites. However, description of functions is very important in one file to be easily searched and printed out as necessary.

Thanks, John.
John
Wednesday, December 12, 2012 4:08:35 PM UTC
I just followed you "free download" link, and the program I installed says it is only free for 30 days. WUWT?
Joseph
Wednesday, December 12, 2012 5:39:14 PM UTC
Joseph - No, it's free forever and always. You just need to register in 30 days (free) so they can email you about updates.
Sunday, December 23, 2012 7:02:14 AM UTC
Scott - why they whant my business name on registration form? I don't have any company, so i can't use visual studio?
Artur
Monday, December 24, 2012 3:00:48 AM UTC
Just put "me" for the company.
Sunday, January 13, 2013 10:33:03 AM UTC
What's the difference between Desktop edition and Windows 8 edition? Applications created with VS2012 Express for Windows 8 just can be executed on Windows 8?

Jordi
Jordi
Monday, January 14, 2013 10:32:19 PM UTC
Jordi - Desktop Edition can make regular windows apps, console apps, etc. Windows 8 edition can make fullscreen apps you can put in the Windows store.
Saturday, February 16, 2013 3:46:26 PM UTC
I currently have the 2010 Express versions. Do I need to unistall those before installing the 2012 versions Thanks in advance.
Tony
Monday, March 04, 2013 10:05:43 AM UTC
Can you install the VS 2012 Express for Desktop and VS 2012 Express for Web on the same computer (say Windows 7)?
Thanks!
JamesC
Thursday, March 21, 2013 2:09:20 PM UTC
This version does not provide intellisence for VC++/CLI. So it's very hard to work with.
Pal
Friday, May 17, 2013 12:48:16 AM UTC
I will have to take a good look, hope to see what i needed.
Monday, June 17, 2013 2:44:16 AM UTC
What is the main difference from the 2012 to the 2010 version?
Tuesday, November 19, 2013 4:17:52 AM UTC
Can one know ,what is MS Visual Studio Express 2012 for Window desktop trail version product key?
karthik
Comments are closed.

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