visual-studio-2008

VS2008: Breakpoints window gone while debugging?

This is probably silly but very frustrating. Using VS2008 with a C++ project, when I'm working normally, the breakpoints window is visible and active but when I'm debugging it disappears and can't be shown. This is a problem if I want to edit the condition of a breakpoint while running. Pressing the breakpoints window button doesn't do a...

Optimize development Virtual Machine

As a best practice I use a virtual machine for my development - I would like to try and optimize my VM as much as possible. All I have installed is server 2003, IIS and Visual Studio 2008. What do you do to optimize your development VM i.e what service do you switch off etc... ...

Excluding Page from Release Build in ASP.NET Project

I am using an "Inspector.aspx" to do some tests in my Debug build. In a Release build (and more importantly when creating an installer), I manually exclude the page (and it's related C# files) from the project. Is there a way to automatically exclude files in a selected solution configuration in an ASP.NET project? C++ projects giv...

How to change .ASPX automatic formatting settings (Visual Studio)

When typing code in a .aspx file (an MVC view in this case), Visual Studio applies two types of formatting, one to the regular html tag structure (which can be controlled from Tools->Options->Text Editors->Html) and another to content inside the <% %> tags. I've run into two annoyances with the second type of automatic formatting, the <...

VS2008.NET: Getting a referenced project's dependencies to copy to main project's bin folder

Let's assume I have a C# Winforms project, MainGUI. It references another project in the same solution, ControlsLib. ControlsLib references a third party control suite, such as Infragistics or Telerik controls, and exposes a set of user controls, that are used in MainGUI. Copy Local is set to true on all the references in ControlsLib,...

If app.config for a DLL should be in the "main config"… what do we do with WCF References in DLLs?

Ok, this is rather simple, but from what I've seen… you can only use some sort of Windows Workflow to include another config into another (which I refuse to do). Here's the deal: MAINAPP.EXE References an hypothetical LIBRARY.DLL. MAINAPP.EXE has its own MAINAPP.EXE.config. If you add "config values" to LIBRARY.DLL (thereby creating ...

Time performance in Release mode: a grotesque difference in VC++ 2008 and VC++ 2005 Express Edition

I ran the same project (with the same configuration properties) in VC++ 2008 and in VC++ 2005 Express Edition. I was surprised by the difference in time performance between them: VC++ 2008 took much more time (approximately 30% additional time) than VC++ 2005 Express Edition. Why did this happen? Is it due to Express Edition being lighte...

View current Assembly Version number within VS2008

I would like to know if there is a way to see Assembly Version number of the last completed build within the Visual Studio 2008 IDE. I don't want to see the 1.0.* that is in the Assembly Information dialog box or AssemblyInfo file, but rather the full version (with the *'s replaced by real numbers). I also don't want to have to bring u...

Problem with prebuild event in Visual Studio replacing $(SolutionDir) with *Undefined*

I believe the problem is documented here and looks like it might be a bug in visual studio, but I'm wondering if anyone knows of a workaround. Basically I have the following 2 lines (among other things) one right after the other in the prebuild event. "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe" /p:configuration=Release;platf...

In my Azure example solution AspProviders the project StorageClient is unavailable

I am having trouble loading Azure example solution AspProviders the StorageClient project is unavailable. What am I missing? What can should I check for? (This example is found in the Azure SDK) ...

VB 2008 Periodic Tasks

What's the easiest way to run a periodic task in the background in VB? For example: Update a label every second with the current time, while still allowing the form to be available. ...

VS2008 Toolbox Controls Repeated

I'm not really sure why but my VS2008 toolbox controls (Data, Validation, Navigation, Login & Webparts) are displaying multiple times. Does anyone know how to correct the issue? I'm still using XP if that has any bearing on the answer. Thanks! ...

External editor in Visual Studio 2008

Is there any way to set up external editor integration for VS2008? By this I mean when I double-click on a .CPP file in the Solution Explorer, it should open in the external editor, not the internal VS one. To keep it simple let's say I want it to open the file in Notepad++ (or how about Notepad to make it even simpler). ...

Possible bug in _controlfp_s may not restore control word correctly

Hi All, I've stumbled across either a problem with _controlfp_s (Visual Studio 2008), or my understanding of it. I thought the first out parameter returned the control flags before changes of the other parameters are applied. Seems it returns the flags after the change. So, I thought the correct way to use it was like this: // Chop ...

How to Increment Visual Studio build number using C++?

I have a Visual Studio 2008 project that produces a file called: "Game-Release.exe". This was configured under Project Properties -> C/C++ -> Linker -> General: $(OutDir)\$(ProjectName)-Release.exe I would like to take this a bit further by have an incrementing build number so I would have something which says: Game-Release-Build-10...

Converting Visual Studio 2008 project to 2003

Very blunt and to the point, but does anyone know how to convert a visual studio 2008 project to visual studio 2003, I'm meant to be delivering some stuff to a client and they only work in 2003. Sorry someone makes a very good point, what language, C# is the answer. I've done a bunch of searches on Google and tend to only come up with ...

jQuery not working in ASP 2.0 page - Visual Web Developer 2008 Express

JQuery is not working in ASP 2.0 pages which were developed under VS 2005 and now doing Javascript in it using Visual Web Developer 2008 Express. I have included the jquery file. I have also installed all patches required. JQuery intellisense works fine in the IDE, but no jquery command is running. btw, the page renders fine from the ser...

Visual Studio 2008 HTML formatting - does it ever work?

It's another Visual Studio 2008 HTML formatting question...I think I have either found a bug in the infamously bad VS HTML formatting, or I'm doing something wrong. Here's what I'm doing: I remove all client side tags via: Tools -> Options -> Text Editor -> HTML -> Format -> Tag Specific options I then add b and span tags: I press...

Shorten delay when hovering over auto-hide panel / toolbars in Visual Studio '08

I've disabled the animation for auto-hide panels or toolbars, but i would like to shorten the delay when hovering over them. Somebody any idea how i can do that. I did not find an option in the environment settings. Thanks! ...

Deploying a Visual Studio Excel 2007 Template

I've created a project of type "Excel 2007 Template" in Visual Studio 2008, and I've deployed the project to a network share. After I run the Studio-generated setup.exe, what do I do to open the template? Is there supposed to an entry in the Start Menu? Show up in Excel somewhere? ...