visual-studio-2008

Installing DirectX with application MSI - VS2008

The application supports Windows XP, Vista, and Windows 7 but need DirectX libraries in order to work properly. I have the DirectX 9.0C Redistributable package and want to include it in my MSI installer created with a Visual Studio 2008 setup project. Two pronged question: How do I include the DirectX 9.0C package wiht my MSI? Will the ...

What new features does vs2010 professional bring for developers targeting .net 3.5 or .net 2.0 over vs2008 professional?

I'm trying to convince my department of the value of vs2010 for the future release, however i'm having a hard time that compares professional against professional and what all the new features are, particularly if we have any red tape with being able to deploy .net 4.0 applications while that waits to get approval. The microsoft site s...

Visual Studio 2008 indenting C comment /* */

I'm new to using Visual Studio 2008 IDE. Switching from vim. Is there a way to setup Visual Studio to automatically indent C comments /* */ such as: /*<ENTER> I want this: /* * <CURSOR> Edit: Seems like Visual Studio 2008 has this behavior for C# comments but not for C/C++ under: Text Editor > C# > Advanced > Generate XML docume...

VS2008 XAML Designer exception "Key cannot be null" when using default styles from a ResourceDictionary

I'm using a shared ResourceDictionary to define default styles and having major conflicts with the XAML Designer in Visual Studio 2008. Key cannot be null appears for all attempts to show the XAML design view. The dictionary is merged into App.xaml (to be used by all windows) and has a number of styles setting the defaults for controls...

How Can I disable Resharper in VS and Enable it again?

I'm new to Resharper and have 2 questions : 1.I installed Resharper and it works in VS but I want disable it for some reason. But whenever I search in the Resharper menu cant find disable option. [Update]{ I moved my second question here :http://stackoverflow.com/questions/2189854/what-is-the-best-practice-to-jump-out-of-closing-brac...

What is the best practice to Jump out of closing bracket in Resharper?

Its good when resharper inserts closing bracket automatically. But assume condition that the method didn't have any parameter in this situation it takes more time to jump out of the brackets is there a work around ? now I use mouse to jump out from closing bracket. ...

Visual Studio 2008 Form Inheritance and Generics Failure to load

Given the following inheritance tree: I have a public class BaseForm : Form This is the base form for all WinForms in the project (or most) and contains some basic stuff. Later in time, when Generics came, I created a public abstract partial class GenericObjectListBase<T> : BaseForm And finally, I specialized that one with a: ...

Visual Studio solution parser

I'm looking for a tool that reads a .sln file and parses out all the sub projects and then parses all the sub project files into a list so that I can write a build list for a release? I just want the directory structure of the entier solution minus any excess that may exist in the solution's directory structure. ...

Sever Explorer and Visual Studion Editing Store Procedure

If there a way to add code to the editor before the store procedure is opened for edit? I would like to include a "Header" to the "ALTER PROCEDURE..." like IF EXISTS... ALTER PROCEDURE ...

How do set a breakpoint on a method within the .net framework

I wish to set a breakpoint on the System.Threading.SynchronizationContext::SetSynchronizationContext static method so I can find out when the synchronization context is being set. However I can’t find how to set a breakpoint in a method I don’t have the source code to. (This should be easy!, but when I try to set the breakpoint on a...

Visual Studio 2008 custom class item template, $safeprojectname$ not reconciling

Just setting up some quick class and object item templates and all is working great so far, but one thing I'm stuck on is the $safeprojectname$ template parameter. I've added this as part of the namespace portion and the $registeredorganization$ is working fine namespace $registeredorganization$.$safeprojectname$ { public class $sa...

VS2008 - Unable to Add Web Reference to Web Application Project (The web services enumeration components are not available)

I've run into a situation where I was unable to add a Web Reference in Visual Studio 2008 to a Web Application Project. The error I couldn't resolve was "The web services enumeration components are not available. You need to reinstall Visual Studio to add web references to your application." How can I resolve this? ...

How to dock a toolwindow by code in a VSPACKAGE

I'm trying to force a ToolWindow into the right docking area without success using : windowFrame.SetFramePos(VSSETFRAMEPOS.SFP_fDockRight, ref viewGuid, 0, 0, 0, 0); But I found out on MSDN that SFP_fDockRight, SFP_fDockLeft and SFP_fDockRight are now obsolete. MSDN doesn't says what to use instead. I know we can use the registry t...

Question about VB.NET constructors

I'm doing a lab for school, and I came across something I have never done before: create a default constructor within my class. It involves creating a private field to store the connection string, then create a default constructor that sets the connection string. Here is what I have so far: Public Class Appointments Private sqlcon...

Does Code Analysis support defining two languages for mixed language Spell Checking?

Using the tip provided by José Adan at http://social.msdn.microsoft.com/Forums/en-US/vstscode/thread/f6dec8c4-9752-4a9b-82fe-0822808fd386/ I was able to get Code Analysis to do spell checking in Brazilian Portuguese. It's a common practice to mix Portuguese and English on type and member names down here in Brazil. I've also seen this pr...

Multiple client projects to one server project w/ Silverlight & RIA Services Beta

The type or namespace name 'Resources' does not exist in the namespace 'MyWebProject.Web' (are you missing an assembly reference?) C:\Users\...\MySecondProject\Generated_Code\MyWebProject.Web.g.cs I am having some problems trying to add a second SL client project to my (Ria services) SL Business Application. It has to do w...

How to generate HTML 5 compliant code from Visual studio 2008?

Does Visual Studio 2008 support HTML 5 compliant code generated for browsers? ...

VS2008: Define the same code analysis settings for a whole solution ?

I want to use the built in code analysis feature in Visual Studio 2008. The settings seems to be only set on a project level. How can I set code analysis settings globally for the entire solution ? ...

Resource editor not available in Visual Studio 2008

When I right-click on a resource file in Visual Studio 2008, I get the following message: There is no editor available for 'D:\MyPath\MyProject\Resources.de.resx'. Make sure the application for the file type (.resx) is installed. Any idea on how to solve this issue? By now, I am stuck with opening the resource files as XML te...

Winforms Designer support to select Types and Controls

I have a Subclass of a BindingSource that just extends it a bit for our special needs, and I would like to support it for the VS2008 Designer. I have three properties, that I would like to get designer support for, two of them should be set to other Controls on the form, one should be set to a Type. Displaying them in den Designer as w...