visual-studio-2008

Build Process for a Visual C++ 2008 Express Project

I have a VS 2008 C++ project, with one very small and simple code file. I need to write an app to generate this file and build the project into a Win32 DLL. I will need to deliver a free compiler etc. with the app to my client, so I can't automate VS to do this. How would I best go about this? ...

Using HashSet<T> in C# Properties.Settings

I am creating some C# tools for the game I am working on, and I'm adding the "recent files->" drop down menu. The problem is, I can't get C#'s "Settings" page in VS2008 to allow me to add a typed HashSet. There's just no option to do it. I got all hackalicious and manually edited the "Settings.Designer.cs" file to: [global::System...

Can StyleCop automatically fix anything?

I've decided to start running StyleCop on a medium sized project and am getting over 1000 warnings. Is there a quick easy way to fix most of these warnings? Most of the warnings could easily have been automated to resolve and would save me a lot of time. ...

Can I adjust the visual studio "Break when an exception is thrown" options programatically?

Briefly: In Visual Studio 2008, the Debug menu has an Exceptions... option. When clicking this, it brings up the "Break when an exception is thrown" dialog, wherein I tick the box next to "Common Language Runtime Exceptions". I want to be able to tick / untick this box programatically. Elaboration: This causes the debugger to break w...

Visual Studio 2008 SP1:

'X', here, is a 3rd-party component implementing ICollection, and 'Y' is Count. It compiles, temporarily removing the squigglies, and either shortly after (1-2 seconds), or after any edits are made in the text editor, shows red squigglies under Count. ?! Any help would be mucho appreciated, thx. edit: for example, ThirdPartyComponent...

VS Team Tester failed to run dynamic web test

I have a Testing project that contains a csv file which a webtest uses to run against one of our projects. For some reason, even though it is referenced correctly I receive the following error: Could not run Web test 'SubmitBadData' on agent 'BLDSERVER': Could not access table 'BadData#csv' in data source 'BadData' of test '942b62a8-c1...

VS2008 insists on defaulting to "Itanium" for Active Solution Platform in C++

I just started using C++ VS2008, and downloaded an archive of samples from MSDN. The file is vc_samples.exe - sorry, don't have a link right now. My problem is, most of these examples would not compile. The Start Debugging button (green arrow) was disabled, with no explanation whatsoever from the IDE. More by luck than skill, I stumb...

Auto formatting a web.config in Visual Studio 2008

I am currently in the process of creating API documentation using Microsoft Word 2007 and I need the user to cut and paste a section from the document into their web.config. I formatted the section in the Microsoft Word document for easy readability and when I paste the formatted section into the web.config it maintains the style from t...

Generate DTOs from Object

Hi there, I want to auto gen some DTOs from some of my existing objects, I was wondering if there already exist a Resharper, DevExpress or VSX open source to use, I need a tool to look into my code and let me choose which properties I want to include in my DTO and then generate a class based on that... ...

Is there a way to "Export" a Visual Studio 2008 Solution

I have been called in to "clean up" and get started again in a .NET environment where the developers left quite a tangled mess. The developer is still available to me and he is/was able to pull up the solution on his machine, but when I attempt to use this is on my machine it creates a mess. What I would like to do is to have an "Export...

Is there a way to have intellisense working for classic-asp custom classes in VS 2008 ?

First, this has never worked before, so it is not specifically related to VS 2008. The problem : when you have custom asp classes in separate files that you include in a "main" asp script, you won't get intellisense in Visual Studio. Example : CUser.asp <% Class CUser Public Sub Create() Public Sub Remove() End Class %> Main....

Visual Studio Post Build Event - Copy to Relative Directory Location

On a successful build, I wish to copy the contents of the output directory to a different location under the same "base" folder. This parent folder is a relative part and can vary based on Source Control settings. I have listed a few of the Macro values available to me ... $(SolutionDir) = D:\GolbalDir\Version\AppName\Solution1\build ...

Throw-catch cause linkage errors

I'm getting linkage errors of the following type: Festival.obj : error LNK2019: unresolved external symbol "public: void __thiscall Tree::add(class Price &)" (?add@?$Tree@VPrice@@@@QAEXAAVPrice@@@Z) referenced in function __catch$?AddBand@Festival@@QAE?AW4StatusType@@HHH@Z$0 I used to think it has to do with try-catch me...

How do I determine which service pack Visual Studio is running?

How do I determine which service pack (if any) Visual Studio is running? Right now I'm trying to determine if a machine is running VS2008 or VS2008 SP1. ...

Visual Studio 2008 SP1 Redistributable

Does anyone know where to download the Visual Studio 2008 SP1 Redistributable? I sure would like to have it so I don't have to download the service pack for every install. ...

Visual C++ Debug window displaying of CR/LF in Visual Studio 2008

For some time now when I am debugging Visual C++ applications and viewing any CString or char* (or any other ascii char based type) variable in the Local, Auto, or Watch debug windows, the CR/LF characters in my variables are not displayed at all. In other words, if I have a string variable set to "This is a line\r\nThis is another line...

How to programmatically navigate the Schema View in Visual Studio 2008?

I'm planning to develop an Add-in for Visual Studio 2008 that will allow me to programmatically create basic procedures for tables in a Database Project. However I'm stuck in the very early stage because I can't find a way to programmatically navigate the schema view of the Database Project. Does anyonw know how do I do it? ...

Multiproc builds in VS2008

I remember reading somewhere about multiproc builds in VS2008, only I can't find the article now. Does anyone know how to turn this on, or even if it is possible? ...

Master Page Weirdness - "Content controls have to be top-level controls in a content page or a nested master page that references a master page."

This is weird. I added a brand new Web Application project to my solution in Visual Studio 2008. Created a master page. Made zero modifications. Created a new webform. Set its masterpage to the MP i just created. Still, no modifications. No markup. No user controls. No references. Nothing. However when I try to run it, i ge...

Change font size and style in Visual Studio 2008

Does anyone know the setting where I can change the font size and type in Visual Studio 2008? ...