Category: Visual Studio

A not so clear Visual Studio code analysis message (CA1308)

While writing a custom stsadm command for SharePoint (more on that in a future post) and having to do something based on the command the user typed in, I used ToLower(CultureInfo.InvariantCulture) on the command string to be able to check without the hassle of differences in casing. When I ran code analysis on my project, …

Read More “A not so clear Visual Studio code analysis message (CA1308)”

Error connecting to undo manager

 While developing a web application for a friend of mine, I ran into a Visual Studio error message I hadn’t seen before: Error connecting to undo manager of source file ‘D:DevelopmentSomeWeb ApplicationDefault.master.designer.cs’. The error occured whenever I tried to start the (web) application in debug mode. The application did start OK after the error message …

Read More “Error connecting to undo manager”

Backing up and restoring Visual Studio settings

When roaming the MSDN forums for unanswered questions for me to answer, I come across a lot of questions about any of the following: Intellisense acting weird Intellisense not showing up at all Menu items that are all garbled up Missing buttons on toolbars Complete toolbars missing Keyboard shortcuts acting weird Keyboard shortcuts not working …

Read More “Backing up and restoring Visual Studio settings”

Selecting all the controls of a specific type, the (built in!) LINQ way

We probably all worked with dynamically generated controls on forms, ASP.NET pages or (user) controls. And I guess we’ve all written for-each statements to loop through the ControlCollection and filter out all the controls of a specific type, right? I wanted to do the same today, so I started by trying to use LINQ for …

Read More “Selecting all the controls of a specific type, the (built in!) LINQ way”

Error adding an OleDb Data Connection to Visual Studio Server Explorer

The error I’m getting when setting up an OleDB connection to an Access database* via the Server Explorer in Visual Studio 2008 is ‘Format of the initialization string does not conform to specification starting at index 0’. The screen doesn’t display the way it should be displayed, as you can see in the screenshot on …

Read More “Error adding an OleDb Data Connection to Visual Studio Server Explorer”

(Single-Entry, ) Single-Exit, my 2 cents

As a reaction to this article at Peter Ritchie’s MVP Blog, I thought I’d give my two cents on having a single exit point for methods. Here we go… When writing code, I always create only one exit point except for the occasional throwing of an exception. Most important for me is to always know …

Read More “(Single-Entry, ) Single-Exit, my 2 cents”

Now available: PowerCommands for Visual Studio 2008

One of the most annoying things in Visual Studio (to me) was the fact that complete solutions (solution folders, projects, regulare folder)  would be expanded upon opening. And with big solutions, that isn’t too much fun. There are macros available online, but the ones i found were pretty slow. This is only one of the things that the …

Read More “Now available: PowerCommands for Visual Studio 2008”

.NET Framework versioning, or The impact of switching from Visual Studio 2005 to 2008

With the official release of Visual Studio 2008 coming closer and its release on MSDN last november, there are more and more people asking what the impact of migrating from VS2005 to VS2008 will be and if it will have as big an impact as switching from VS2003 to VS2005 had. The answer is pretty simple: no it …

Read More “.NET Framework versioning, or The impact of switching from Visual Studio 2005 to 2008”

.NET framework source code now available

As stated on ScottGu’s blog in his latest post, the .NET Framework Library Source Code is now available. A detailed blog post about the steps to follow to enable .NET Framework source access in Visual Studio 2008 can be found at Shawn Burke’s blog in this post.Taken from Scott’s post:Once you follow the configuration steps in Shawn’s …

Read More “.NET framework source code now available”

Finally getting some coding done

The last weeks have been filled with holidays and introductional days at my new employer. Because of that, I haven’t had the time to realy dive into Visual Studio 2008, although I have played around with it since the RTM version was available. Since this week I’ve been writing some serious code in VS2008 for my new …

Read More “Finally getting some coding done”

“Some of the properties associated with the solution could not be read”

Next to the message in the subject, one of the symptoms we encountered is that although the solution contains some test projects the ‘Create private accessor’ menu has disappeared. Also, selecting ‘Create unit tests…’ produces an error. And when editing a testrun config and selecting the ‘Code coverage’ option, the settings dialog simply closes, without …

Read More ““Some of the properties associated with the solution could not be read””

Project template doesn’t understand AssemblyName tag?

At my current project we made a project template for Visual Studio for our testers. We added all the references, folders and files a tester needs to add a new system tests project. One of the testers (!) extended our XML generator, which generated XML testcases based on data entered in Excel, to now generate …

Read More “Project template doesn’t understand AssemblyName tag?”

Nerd alert?

I have lots of games for my Xbox 360 I still need to / want to finish, like The Orange Box and Bioshock. And despite this, I’ve been working ‘non-stop’ behind my laptop for the last two evenings to prepare it for Visual Studio 2008, and to download and install it. It’s almost time… 😉 …

Read More “Nerd alert?”