visual-studio

Verbatim strings and Visual Studio

Is there a way to get Visual Studio to display strings as verbatim strings (prefixed with '@')? I'd like to easily cut strings containing file paths from Visual Studio into Explorer or other apps. Clarification: when VS displays a string in the auto, watch, immediate, etc. window, I'd like it to be formatted as as verbatim string so tha...

Make Visual Studio's Find in Files default to the project directory?

I have many different branches/checkouts of the same project code on my development machine. Each one is virtually the same except for various maintenance bug fixes or improvements I'm working on within each project. The problem comes when I use Find in Files inside Visual Studio to search through my code. VS2005 stores the last search ...

Effective usage of Workspaces in Visual Studio?

I am wondering what is the best way to use workspaces in visual studio. We have 150+ webservices that are all part of the same team project $/MyTeamProject without being related at all. The reason for them all being part of the same team project as they are all maintained by the same group of people within our organization. Each webser...

How to use app.config with Visual Studio add-in?

I'm building a simple VS2008 add-in. What is the best practice for storing custom run-time settings? Where do you store the app.config and how do you access it from the add-in? ...

What to do about the solution explorer and getting around? Suggestions and improvements!

I find the solution explorer is a bit slow to get around in sometimes, and think that there might be a better UI solution out there. I like Ctrl+T but sometimes a visual cue is better than remembering the class name? I think it would be nice you had a second, similar window, that only shows files that have been opened during the current...

Unit testing CLI/MFC Application

Hey all. I have CLI/MFC application and I would like to begin to learn how to unit test with it. I have VS2008 Pro. If possible, I would like to use the built in unit testing. Thanks for your input! ...

How can i have two concurrent web apps running on VS2008/VSS8.0/ASP.NET/IIS for a trunk and branch version?

Applications I am using: Visual Studio 2008 (C#/ASP.NET) Visual Source Safe 8.0 IIS 5.1 I have two Web Apps both named the same but one is used for major releases and the other is for minor (trunk and branch). I am wondering if there is an option in Visual Studio that prevents it from creating an ASP.NET app in IIS using the web app's p...

Problem refreshing tables in the LINQ to SQL designer

I have been using LINQ to SQL for a while, and there is one thing that has always bothered me. Whenever I modify the schema of a table, in order to refresh it in the designer, I have to delete it and then add it back. That's fine, but this means I have to actually find the table in the designer. I have about 100+ tables in my database,...

Run Batch File in VS2008

Is it possible to run a batch file as a menu item in studio 2008? ...

VS2008 Windows Form Designer does not like my control.

I have a control that is created like so: public partial class MYControl : MyControlBase { public string InnerText { get { return textBox1.Text; } set { textBox1.Text = value; } } public MYControl() { InitializeComponent(); } } partial class MYControl { /// <summary> /// Required de...

Compiling libgadu under Windows

I want to use libgadu (library of instant messaging protocol) under Visual Studio 2008. I have downloaded libgadu http://toxygen.net/libgadu/files/libgadu-1.8.2.tar.gz and under cygwin I've compiled it - ./configure , make , make install. File libgadu.h which appeard in include folder I copied to another folder which is marked in VS as I...

How do you only build a file's project using Visual Studio's Command Window?

I have a .NET solution with multiple projects. Once I finish editing a file, my preference would be to only build the project that the file belongs to but not build any of the other projects. From the menu, the following option does exactly what I want: Build -> Build [MY PROJECT NAME] However, I would like to call that action from V...

How to add WCF service reference in Visual Studio 2005?

What do I need to allow Visual Studio 2005 to add WCF service reference to a project? I know I should just use Visual Studio 2008, but I'm preparing for a "what-if" situation where the client does not have VS2008 just yet. ...

Visual Studio and add-in unloading

When I remove an add-in from Visual Studio's add-in menu, it doesn't get unloaded from memory. Does anyone know if I can write some code for my add-in (in C#) that would force this unloading. Is this even possible, or do I have to restart VS? ...

Pitfalls for converting a .net 1.1 solution to .net 2.0

In this question superwiren asks about the pitfalls for converting a .net 2.0 solution to .net 3.5. What about .net 1.1 to .net 2.0? Is 2.0 fully backwards compatible with 1.1? ...

How to temporarily deactivate all try catch blocks?

Is there a possibility to deactivate / activate all try catch blocks in the whole project as easy as clicking a button? Environment: VS 2008 with C# as language. ...

How can I make a setup that makes my software require administrative priviliges while installation?

I have created an application that writes some data to the root folder of the directory in which it was installed (in Program Files). But under Windows Vista, the program is unable to write to the directory because the UAC restricts administrative privileges. I need to be able to do the following Write a file in the folder where the p...

"Microsoft Visual C# IntelliSense has stopped working" in project referencing F#

After installing the F# September CTP (1.9.6.2), Visual Studio 2008 frequently gives an error "Microsoft Visual C# IntelliSense has stopped working" which promptly crashes all of Visual Studio. I tried the tips mentioned in a similar SO article such as "devenv.exe /ResetSettings", deleting the ncb file (which actually didn't exist), and...

Visual studio - is there a way to select multiple files and wrap a namespace around each of them?

Is there a way to select all classes within a folder and assign a namespace to each of them in visual studio? If there is no tool to do it, is there a regex pattern that will match everything before the class declatarion, but after the imports? ...

Is there an easy way to recreate the WinForms layout experience at runtime for user positioning of controls.

When laying out a WinForm in Visual Studio you get the ability to resize and align your controls very easily with drag handles and border alignment hints. I'd like to do the same with a runtime control to enable the user to position an image on a page. For example, if the user has a photo and they want to place it as a background on th...