Skip to main content
  1. Tags/

Visual Studio

Installing my laptop after a repair

·1 min

I’m reinstalling my laptop after I got it back from a repair… EMPTY (grrr).

What tools shouldn’t I forget when preparing this laptop to be my development machine? Already have Visual Studio, SQL Management Studio, Office and the Windows Live tools installed… (and of course I have all kinds of tools at hand from my server like DebugView, Reflector and whatnot)

StyleCop v4.3 now available

·1 min

StyleCop version 4.3 was released last tuesday. A short summary of what version 4.3 brings us: 

Cool tool: DebugView

·1 min

Taken from the SysInternals website:

The SysInternals web site was created in 1996 by Mark Russinovich and Bryce Cogswell to host their advanced system utilities and technical information. Microsoft acquired Sysinternals in July, 2006. Whether you’re an IT Pro or a developer, you’ll find Sysinternals utilities to help you manage, troubleshoot and diagnose your Windows systems and applications.

Running code analysis on a custom stsadm command gives errors CA0052 and CA0055

When you want to implement a custom stsadm for SharePoint, all you realy have to do is implement the Microsoft.SharePoint.StsAdmin.ISPStsadmCommand interface. Because I develop on a machine with no SharePoint installed, I (only) copy the assemblies I need to develop locally. For the stsadm command I was working on recently (more on this in a future post) I only needed the Microsoft.SharePoint and Microsoft.Office.Server assemblies. Or at least I thought so…

Error connecting to undo manager

·1 min

Image missing

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’.

Backing up and restoring Visual Studio settings

·2 mins

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 at all

In most cases, resetting the Visual Studio settings to the default settings using devenv /resetsettings solves any problems that are in that list. But I can imagine you don’t want to go through the hassle of setting up Visual Studio exactly the way you want it again (and again, and…). There’s a solution to that: define your own settings file to restore settings from.

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

·2 mins

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 this:
Image missing This, as you can see, generated a compile time error:
Could not find an implementation of the query pattern for source type ‘System.Web.UI.ControlCollection’.  ‘Where’ not found.  Consider explicitly specifying the type of the range variable ‘control’.