It is currently Thu Jul 31, 2014 8:28 am

All times are UTC - 4 hours [ DST ]





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: A look at VS11
PostPosted: Mon Sep 19, 2011 7:21 pm 
Offline
User avatar
Visual Studio 11 Installation

Image

Very minimalistic, sleek installer window. Downloading and installing. VS11 is about 8GB so this takes a while. Okay, I lied. It takes forever.

Image

Reboot required half-way through.

Oh god we're going in. Final reboot required. Total time from download to installation: 4 hours, 30 minutes.

Image

Enter: Visual Studio 11.

Image

VS11 takes a moment to import my settings from VS2010. After this is finished, you're greeted with a screen not unlike VS2010's home page:

Image

One difference you'll see is in the top right. The Quick Launch bar lets you search for commands contained within VS11. For example, typing 'new project' gives you the following results:

Image

Let's see what else is new, starting from the New Project window.

Image

Hmm...not really anything new. I don't see Metro style apps here. Not too sure why. Obviously I can't run them on this machine (W7), so that might have something to do with it? For now I'll create a C# Console Application using .NET 4.5. One new feature I noticed immediately is that, by default, the current line is highlighted. The Solution Explorer is now a bit more robust and features better navigation capabilities. Hovering over an item in the explorer gives the ability to view a concise summary of what that file contains. The Error List now has the ability to search for specific error messages as well as another filter option. VS11 shows fewer toolbar icons across the top by default, giving an increase in screen real-estate.

As a bonus, have a taste of the new async/await keywords.

Image

The Windows Forms Editor is still pretty much the same so I won't cover that. The only real difference is that the Toolbox window now has a search bar as well (a great improvement - sometimes I'd scroll through the list 5 times before I found the control I was looking for).

Let's transition and look at what VS11 means for C++.

Image

Pretty much the same. The only new item here is Native Unit Test Project, which lets you hook your native code up to a managed unit test harness. Basically this means you can test your code to make sure it's working properly.

I'll create an empty project and add a main.cpp file to it. As you can see, there are HLSL files that you can add to your project now.

Image

The new code editor has made some interesting changes. For starters, parameters are now italicized (this can be changed if you don't like it). I'm very disappointed that we still don't have built-in support for basic refactoring functions, like rename. You still have to rely on an addon like Visual Assist X to do that for you.

Image

You can generate a graph of included files.

Image

One thing that we have that was missing from VS2010 entirely was C++/CLI Intellisense. Never used C++/CLI? It's C++ for the .NET framework. Almost no one uses it *exclusively,* but instead it is most commonly used for bridging the gap between managed code (C#/VB.NET) and native code (C/C++/Pascal/what have you). Still, it exists and people use it. It's identical to the native C++ editor so I won't bother showing it here.

The F# editor has not changed a bit. No one here seems to be interested in F# so I'll skip it.

WPF hasn't changed much. I don't know a lot about WPF development so, once again, I'll skip it. Well, that, and VS11 crashed and burned when I created a WPF project.

I'd like to show the HTML5/JavaScript capabilities, but since I can't access them I can't do that either.

Instead, I'm going to open up a Direct3D9 project I have sitting around: DCRAWL. Keep in mind that the original project is 2008 and I will be upgrading it two major versions 2008 -> 2010 -> 2011. I am greeted with a new upgrade window:

Image

The conversion took place rather quickly. I noticed right away there was a new icon in the Solution Explorer that I hadn't seen before - 'fx' - a HLSL effect file.

Image

When compiling for the first time, I got an error: error X3501: 'main': entrypoint not found. I went into the Project Properties and found there was a new section for HLSL Compiler. I changed the configuration to "Effect File (fx)" and was able to compile successfully.

Image

In the Debug menu, there is a new subitem for Graphics. To enable GPU debugging, I had to go into Project Properties > Debug > Enable Graphics Capture. By default, it is turned off.

Image

Unfortunately, I couldn't get it to work with my project. I'm not sure what the problem is, but when I start the application I get an error:
[pre]The program can't start because api-ms-win-core-registry-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.[/pre]



So there's a quick look at VS11. I'll check more of it out tomorrow when I get some time (I only had about an hour to play with it today) and maybe post some more info.

_________________
C++ FAQ :: c2 :: stackoverflow :: flipcode


Top
 Profile  
 
 Post subject: Re: A look at VS11
PostPosted: Tue Sep 20, 2011 3:09 am 
Offline
User avatar
Just found out that you can't install this on Windows XP. Not too happy about that.

_________________
C++ FAQ :: c2 :: stackoverflow :: flipcode


Top
 Profile  
 
 Post subject: Re: A look at VS11
PostPosted: Tue Sep 20, 2011 2:06 pm 
Offline
User avatar
Kuraitou wrote:
Just found out that you can't install this on Windows XP. Not too happy about that.

Neither am I. I do all my .NET development in a Windows XP vm, and I don't want to buy another Windows 7 license or a Windows 8 license just for that.

_________________
>+[<.>[->+>+<<]>>[-<<+>>]<<<[->+<]>>[-<<+>>]<]


Top
 Profile  
 
 Post subject: Re: A look at VS11
PostPosted: Tue Sep 20, 2011 2:21 pm 
Offline
User avatar
jdpage wrote:
Kuraitou wrote:
Just found out that you can't install this on Windows XP. Not too happy about that.

Neither am I. I do all my .NET development in a Windows XP vm, and I don't want to buy another Windows 7 license or a Windows 8 license just for that.

Buy a Microsoft Technet subscription for a year and then cancel.

Download ISO's and two keys for each and every version of windows ever published, legally.

???

Profit.


Top
 Profile  
 
 Post subject: Re: A look at VS11
PostPosted: Wed Feb 29, 2012 1:13 pm 
Offline
User avatar
Image

_________________
C++ FAQ :: c2 :: stackoverflow :: flipcode


Top
 Profile  
 
 Post subject: Re: A look at VS11
PostPosted: Wed Feb 29, 2012 5:40 pm 
Offline
User avatar
Double postan because yeah. VS11 comes in two color schemes: light and dark.

Image

Image

Upgraded my project to use the VS11 toolset. Seems to be working fine so far.

Image

_________________
C++ FAQ :: c2 :: stackoverflow :: flipcode


Top
 Profile  
 
 Post subject: Re: A look at VS11
PostPosted: Sat Jun 02, 2012 9:59 am 
Offline
User avatar
VS11 has been renamed to Visual Studio 2012. Release candidate is now available.

Image

_________________
C++ FAQ :: c2 :: stackoverflow :: flipcode


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


cron