visual-studio

mspdbsrv.exe living forever?

Is there a way to prevent mspdbsrv.exe from continuing to run after finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place? what is this guy good for anyway? using vs2005 ...

Visual Studio opens default browser instead of IE

When I debug in Visual Studio, firefox opens and that is annoying because of the hookups that IE and VS have such as when you close the IE browser that starting debug opened, VS stops debugging. How can I get Visual Studio to open IE instead without having to set IE as my default browser? ...

Why can't I single-step Clipboard-code within the VS.NET debugger ?

Ideally the reader has upgraded a native C++ program to Visual Studio 2008, which contains an OpenClipboard() block. Why not try setting a breakpoint just after getting a successful return-code from OpenClipboard() and step through your code. According to the Internet it may work on your system, but of course, not on mine, thanks for t...

Open .NET form in designer mode - get "The path is not of a legal form"

I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened? Thanks to all who have answered. This question is a problem I hit a while back, and I struggled with it for a long time, until I found the answer, w...

Visual Studio: How to trigger an alarm when a breakpoint is hit?

Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm using Visual Studio 2005/2008. ...

In Visual Studio 2008, how can I make control+click do a "Go To Definition"?

I know this is not strictly about programming, but it's pretty close. Anyway, in Delphi, you can hold control and click on a method to jump to its definition. In VS2008, you have to right-click and select "Go To Definition". I use this function quite often, so I'd really like to get VS to behave like delphi in this regard - its so much...

Remove unused references (!= "using")

How can I find and delete unused references in my projects? I know you can easily remove the using statements in vs 2008, but this doesn't remove the actual reference in your projects. The referenced dll will still be copied in your bin/setup package. ...

Displaying build times in Visual Studio?

Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008. Is there any way to get devenv.com to log the time taken to build each project in the solution, so that I know where to focus my efforts? Improved hardware is not an option in this case. I've tried setting the output verbosity (under Tools...

website or webapplication in.ASP.NET

which VS template should be used for a ASP.NET website, the website template or the project | webapplication template. ...

How do you clear your MRU list in Visual Studio?

I want to clear the list of projects on the start page...how do I do this? I know I can track it down in the registry, but is there an approved route to go? ...

How do I reference a diagram in a DSL T4 template?

Google's not coming to my rescue, here, and I just know this is the perfect place to ask. I'm writing a custom DirectiveProcessor for a DSL and I want to be able to access a diagram from within my T4 template. Within my DirectiveProcessor, I've loaded the domain model and my diagram using (wait for it...) LoadModelAndDiagram(...). So,...

How to automatically remove trailing whitespace in Visual Studio 2008?

Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this? ...

What's the best/fastest/easiest way to collapse all projects in Visual Studio?

I'm currently using DPack as this adds a "Collapse All Projects" option to the Solution node in Solution Explorer. It works pretty well but can take a while to execute and doesn't always collapse everything fully. Are there any better alternatives? Preferably free and easy to install/setup. There are lots out there but which work best a...

Home key go to start of line in Visual Studio?

Where is the option in Visual Studio to make the Home key go to the start of the line? Right now you have to do Home,Home or Home, Ctrl+Left Arrow i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it. ...

How can I create and develop new database projects in Visual Studio?

I want to find a way to develop database projects quickly in Visual Studio. Any ideas? ...

ReSharper sluggishness

I like ReSharper, but it is a total memory hog. It can quickly swell up and consume a half-gig of RAM without too much effort and bog down the IDE. Does anybody know of any way to configure it to be not as slow? ...

Finding errors / warnings in Visual Studio

I have experienced an annoying issue with Visual Studio 2005... sometimes when I rebuild, and even if I do a Rebuild Solution, it will come back with no errors or warnings, but then when I later edit another code file, even without changing it, and rebuild, it will find an error or warning in that other file. Clearly, the earlier Rebuil...

Adding a guideline to the editor in Visual Studio

Introduction I've always been searching for a way to make Visual Studio draw a line after a certain amount of characters: Below is a guide to enable these so called guidelines for various versions of Visual Studio. Visual Studio 2010 Install Paul Harrington's Editor Guidelines extension. Open the registry at: HKEY_CURRENT_USER\So...

Using Visual Studio's 'cl' from a normal command line

Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when compiling. This is not always desirable. If, for example, I want to run 'cl' from within ...

How to deploy SQL Reporting 2005 when Data Sources are locked?

The DBAs here maintain all SQL Server and SQL Reporting servers. I have a custom developed SQL Reporting 2005 project in Visual Studio that runs fine on my local SQL Database and Reporting instances. I need to deploy to a production server, so I had a folder created on a SQL Reporting 2005 server with permissions to upload files. Norm...