visual-studio

How can I add a new option to the explorer right click context menu?

I would like to add a right click menu option to Windows explorer for all .sln files that says "Build." It just needs to call devenv to build the sln without opening it first. What is the easiest way to do this? Note that I am using Windows Vista, if that matters. Solution I found a simple solution. Create and run .Reg file with th...

Need help on setting web service proxy dynamically without build?

I have a web application deployed in production which references an external web service. Looking at the source code in Visual Studio, I see that the web referebce was statically linked. In the proxy reference.cs, it is hardcode to the url. this.Url = "http://server/WebService/Service.asmx"; I can change the url. But, I would like the p...

Error installing VS2008 on virtualbox

This is the fifth time now, tried different machines, different drive sizes,even tried both Vista and XP, nothing seems to work. I installed a virtualbox VM. Set up an OS, then try to set up VS2008. And then the VS2008 installation crashes with the following error log [04/13/09,14:27:31] setup.exe: [2] ISetupComponent::Pre/Post/Insta...

restarting a single instance application

Is there any way of restarting a single instance application, which is deployed via clickonce? ...

How do you build a debug .exe (MSVCRTD.lib) against a release built lib (MSVCRT.lib)?

I'm using Visual C++ 2008, SP1. I have a QT app (gui, .exe) in debug build config. It's set to use the Multi-threaded Debug DLL version of the CRT, aka MSVCRTD.lib. I'm linking against a 3rd party library that is built in release mode and using the Multi-threaded DLL (non-debug) version of the CRT, aka MSVCRT.lib. It links and runs but...

How to extend the VisualStudio Form designer

I would like to write an extension to the VisualStudio form designer which automatically corrects some properties of controls: More specifically, I would like to be able to select a TableLayoutPanel, invoke some command (menu, macro, verb, whatever) and have the AutoSize, Anchor, Margin, Padding etc. properties of the contained controls...

Consuming a php webservice in visual studio

Hi, Is it possible to consume a php webservice in visual studio? I have a webservice with a wsdl file created by nusoap, when I try to add the web reference in visual studio the name of the service and the methods show up but it complains that the 'wsdl is not a known document type' and the discovery document could not be found. Any su...

How do I fix this Visual Studio keyboard mapping problem?

Something (who knows, possibly even me, though certainly not intentionally) has changed the keyboard mapping in Visual Studio 2008, and I cannot figure out how to get it back to the default. The symptom that I see as the problem is that when I type the name of a class which is not in a namespace listed in the using statements at the top...

How to automatically add a huge set of .vcproj files to the solution?

I have a huge set of .vcproj files (~200) stored in different locations. I have a list of these files with full paths. How can i automatically add them to the solution file(.sln) ? UPD: I'm looking for existing tool/method. ...

Visual Studio - Intercept and change path on creation for solutions and projects

I'm working on an automated process to build a base application to include common libraries and projects, check everything into source control and setup the base build for the solution. Most of the issues I've solved except one. Is it possible to intercept the user given path for the solution and projects and alter that path? In other...

Quick way to insert interface methods to a class in Visual Studio 2005

I know that in Eclipse, if your class implements an interface or extends an abstract class, there is a quick way to add the method definitions to your class. Can this be done with VS2005? How? ...

How do build a VS-like propertypanel in WPF?

I got a TreeView containing different objects from different classes. Now I want to build a propertypanel, which shows up different content, depenting on what object/class is selected in the TreeView. What is the best way to build such panel? Differnt panels and collapsing panels depending on the selection(Whould make implementing the Ob...

"CoInitialize failed" when one functino (from a lib) is included in VC++ MFC project

I know this is kind of vague, I'm just shooting for general possibilities here to get me on the right track. I include two libs and their .h's in my MFC Dialog program and compile it, no problem. When I call a function from one of the libs though, it shoots up a dialog box that says "Com Error" "CoInitialize Failed". That's not when I a...

Visual Studio Fonts and Colors: need more customizability

For example, I want class fields, method names, and properties to be boldfaced, but I don't want them to be boldfaced inside method bodies. e.g., public static void **WriteStuff**(string notEvenUsed) { var x = 0; Console.WriteLine("Stuff"); } I want WriteStuff to be in bold, but not WriteLine, x, or notEvenUsed. ...

LINQ To SQL Class diagram in Visual Studio

Is there a way to copy the class diagram generated by the LINQ To SQL ORM in VS2008 without using print screen (yes, I know it's pathetic)? For example, when I create database projects in Visual Studio I can copy the database diagrams and save them later in Paint.NET in any image format. Any idea or suggestion will be greatly appreciate...

Visual Studio 2008: How to install an item template

I have created an Item Template using the "Export Template" wizard. I opened up the XML file and made a couple of minor changes, then rezipped the package. Then I checked the item template into source control so that everyone on the team can access it if they want. But for the life of me I can't get the template to show up under My Temp...

SAXON.NET XSLT 2.0 Processor

I am using the open source Saxon XSLT processor for .NET to execute some 2.0 transforms. I reference the saxon9api.dll as I would any other dll, and can compile code against this. However Visual Studio does not show any intellisense making the IDE as useful as notepad. The saxon9api.dll is using the IKVM Java for .NET platform, and I w...

HttpContext.Current.Request.ApplicationPath resolved as "/" on develp server

Hi to all, to get some images' path server side i use HttpContext.Current.Request.ApplicationPath to build up a correct path. It works on the production environment, but it gets resolved as "/" on the developement / debug server provided by VS2008. Any Help? ...

Visual-small size language

I need to develop a simple Windows application with 6 or 7 forms. Its main purpose is to manage files and launch a external program. These are my wishes, in descending importance order Free Be Visual, I mean, the possibility to paint forms and object in the screen. Possibility to carry it in a USB pen-drive. I need a light/small s...

Using visual studio 2008 and 2005 in one group

We have a team on vs 2005. We want to upgrade to vs 2008 but want to do it incrementally. If we have a few folks on the team upgrade to 2008 (still targetting the 2.0 framework) while others working on the same solutions stay on vs 2005, would this cause any issues . Do solution or project files change due to this? Are there any ba...