Share on Twitter

If you work on a solution that requires multiple startup projects, you can change that in Visual Studio:
image
image

One catch though is that sometimes Visual Studio will switch the Startup project to whatever project you select in Solution Explorer (work on one of its files).

If this happens to you, just select one of the projects as a Startup Project.
image

This seems to "stop" the automatic Startup Project "Feature" from Visual Studio. Click File -> Save All Files to ensure it’s saved, or even restart Visual Studio.

Of course you’ll need to set the multiple startup projects again after that.

Reference

http://stackoverflow.com/questions/4434/can-i-configure-visual-studio-not-to-change-startup-project-everytime-i-open-a-f

Share on Twitter
,
Share on Twitter

In case you haven’t noticed the update of my previous post about VS 11, Resharper 6.1 nightly build supporting VS 11 has been out already.

 

 

Notes On Installing Resharper 6.1 Nightly Build For VS11

  • The file you download is not an EXE, but it is still an installer. All You need to do is run the file and press "Install"
  • You can use the license key mentioned in the download page, but, you may try your existing Resharper 6.0 key as well and see if it works.
  • Likely the Resharper keyboard shortcuts won’t work directly. You need to enable them yourself. More on that below…
  • UPDATE: If you install a nightly build, then a new build comes out and you try to install it, you get "This extension is already installed to all applicable products.". More on that below…

 

To enable the Resharper keyboard shortcuts:

In Visual Studio 11, go to Resharper Options menu:

, , ,
Share on Twitter

It’s been quite sometime since I first installed VS 11 (soon after dev preview came way), so, I thought I’d share my experience around using it as primary IDE (with VS 2010 solutions most of the time):

  • It works nicely with Visual Studio 2010 solutions, even big real-world ones. It doesn’t convert them but does some changes to project files which are backwards compatible (mainly minor formatting changes). Note that from the source-control point of view, those are still changes.
    • Somehow all my IIS 7.5 application pools lost their "Enable 32-bit applications" option very shortly after that. This is too coincidental with Visual Studio 11, although I’m not 100% sure if it was the reason.
      It could be hard to debug, If you start getting errors like "unable to load assembly <some path>.dll. or one of its dependencies. An attempt was made to load a program with an incorrect format.". Check for that option.
  • It works a bit faster than Visual Studio 2010. Maybe because it has fewer plug-ins, but I think if I remember bare-bones Visual Studio 2010 correctly, this Visual Studio 11 one is still (slightly) faster.
, , , ,
Share on Twitter

Background (Safe to skip)

I have been using Visual Studio 11 as primary IDE instead of Visual Studio 2010 at work all day. Details of that might come in a later post, for now, this is on a specific problem. Getting TestDriven.NET to work with Visual Studio 11.

The current project uses MbUnit for number of Selenium functional tests locally and on CI servers. We used to run those using Resharper 5.x in Visual Studio 2010. When Resharper 6 came out, the Gallio / MbUnit Resharper plug-in that made running those tests possible was not compatible with it (and still is not to the date of this post), so, we used TestDriven.NET instead.

When Visual Studio 11 Developer Preview came out,, all installed plug-ins didn’t work with it.

Plugins are two types:

  1. Visual Studio Extensions: Downloaded from Visual Studio Gallery usually,, which is browsable from the IDE Tools-> Extensions Manager menu
  2. Old Style Addins: Usually have their custom installers, which basically drop a ".addin" file (which describes the add-in to Visual Studio) along with the DLLs that make the plug-in. The default location is My DocumentsVisual Studio 2010<or 11 for the preview>Addins. Sometimes, addins are in other locations as well.
, ,
Share on Twitter

Just a quick note, if you install Productivity Power Tools For Visual Studio 2010.

It has a nice feature.. Copy code as html. The feature doesn’t add any new menu option or whatever, simply when you copy the code the usual CTRL+C or Edit -> Copy way in Visual Studio, and paste it in a text-only editor like Notepad, it’ll be treated as text normally, but if you paste it in an HTML capable editor like Microsoft Word, it’ll be paste as HTML.

Note

If you already know what the feature is, and have a problem with Live Writer 2011 or similar version, you can skip to the title that mentions it.

image

  • If you wonder how  made this rectangular selection, you can do it by pressing ALT before selection and holding as you move the mouse to continue to select
  • If you wonder why, simply to avoid the spaces on the left in the pasted code

If I paste this in notepad, nothing new!

image

 

But if I paste in Word 2010 (Outlook is the same)

image

(it can be better if play with font size and text wrapping options)

, , , , ,