visual-studio

WCF service unable to load referenced assemblies from the GAC

I've got a WCF service, hosted in IIS, which is built in Visual Studio. The WCF service library references a few other assemblies, which are part of the same Visual Studio solution. I deploy all the assemblies to the GAC, then start a service client, and see it fail trying to resolve one of the referenced client assemblies. I've added ...

Visual Studio Designer: problem with custom component selection change

I have a component derived from IComponent (also tried to derive from Component) The problem: If I have 2 my custom components on the form, and one of them is selected, then I can't straightly select another my component, I have to click on something else first. Changing selection between my component and any another component (for exa...

Debugging multitheaded programs

I have been a C programmer for many years and my favorite "debugger" has always been the printf() function - I only resort to visual studio's debugger when absolutely forced and so have never been very proficient in using it. Recently I have had to modify a program from C to C++ (although of course printf still works fine) and and parts ...

Installing multiple versions of Visual Studio Team Editions on the same machine

Does anyone have any experience with installing multiple versions of Team edition on the same machine? For example Team Developer and Team Architect at the same time? Is this possible? Do you have to open one version vs the other? Or do you end up with one installation with all the versions installed on top of each other. ...

Microsoft Debug-File Server/Service

Does the debug service keep files up-to-date, with respect to security patches? Generally, what's the turn-around time between the release of an update and the corresponding PDBs on the debug service? Thanks. ...

Can a post-build step take me to a specific line of code?

I just wrote a little program which will be executed as a post-build step when I compile certain projects. This program returns 0 for success, or some number for failure. In case of failure, Visual Studio then correctly outputs: "The command [...] exited with code n." However, a single number is not always helpful. In my case, I actual...

LTProf suitability with Visual Studio

I have gotten recommendations from my earlier question here that LTProf may be a good low-cost option, especially if I'm profiling my application which is built for Windows machines only. After reading the description here, I'm wondering if this application would work with Visual Studio rather than Visual C++. It would be great to hear s...

Dreamweaver Template (dwt) and library plugins for Visual Studio

Does anyone know if there is a plugin for Visual Studio which adds dwt and library functionality like you get in Dreamweaver. I much prefer using Visual Studio but need to keep the dwt format for external developers. Thanks Dave ...

Can we execute a .bat file in post build event command line in visual studio?

Can we execute a .bat file in post build event command line in visual studio? ...

Why do Version Control Systems lack the sharing functionallity of Visual Source Safe and what source control do you use and reckon is worth trying out?

We are looking for a Version Control System to change our current Source Safe one. We are using it along with Visual Studio. We've failed so far - and the main reason for it is that all the alternatives we see doesn't support one or more features of VSS, especially one that we use widely - file share! What's up with that? Alternatives l...

Deleting a method from Visual Studio properties window

The "Events", "Messages" and "Overrides" tabs in the Properties Window can be used to add new methods to a class as well as to remove them. However, when you select to "Delete" a method, it comments the method code instead of deleting it. I know this is for safety issues, but I almost never need the commented code and end up having to d...

Visual Studio - how to BULK add files under a given directory as LINK?

How can one add in Visual Studio all the files under a given directory 'as link' (that is, without Visual Studio creating a local copy under current project's directory, which is what happens if one adds a folder as 'existing item')? In my case, I don't want local copies. Instead, I want to work with existing items in their original loc...

Visual Studio Project: How to include a reference for one configuration only?

Env.: VS2008 C# project Hi, I need to build my app for use in 2 different environments. In one of those environments, I need to use a 3rd party DLL assembly. I could isolate the code that uses this DLL using #if blocks. But how do I conditionally include the reference to the DLL in the CS project file? Edit: womp has a good point in ...

Hide disabled builds in Visual Studio Team Explorer

Is it possible to hide disabled builds in Team Explorer in Visual Studio? I don't want to see these anymore. ...

Format32bppPArgb images in .NET project resources

Is there a way to store images in the project resources as Format32bppPArgb pixelformat? I'm adding png images at the moment and they end up as Format32bppArgb format in the resources. (Visual Studio 2008, VB.NET, DotNET 2.0) Much obliged, David ...

Why my Visual Studio creates unit test projects in VB only?

I am using Visual Studio 2008 SP1. My project is in C#. When I add a test project, it's in VB. I can't find a way to create one in C#. ...

Find and remove Redundant code in Visual Studio 2008

Hi Guys, I have been working on a huge VS 2008 (C#) project. Recently we have been restructoring a section of the solution to use domain driven design in an attempt to increase the quality of the code and architecture. Everything has gone fine, however there will be a large amount of redundant code now nestled in the old business layer...

g.i.cs file not found with WPF and code contracts

Hello, I have a WPF project which compiles just fine. However, when I enable code contracts, I get a lot of errors like the following: file 'C:\MyProject\obj\Debug\MyFile.g.i.cs' could not be found Is there workaround? ...

How to close all Tool Windows In VS2008 with single key shortcut?

I guess the title says it all, I am looking for to bind or use an existing shortcut to close all visible tool windows in VS2008. There was an add-in for VS2005 to do this, but it doesn't seem to work in VS2008. Thanks! ...

How can I get an msi (VS Setup Project) to install a Windows component?

I have a Visual Studio Setup project that creates a Message Queue (MSMQ). It fails on computers where the Message Queue component is not installed. Is it possible to get the installer to enable/add this Windows Component? ...