visual-studio

What exactly does a debugger do?

Hi everyone, I've stumbled onto a very interesting issue where a function (has to deal with the Windows clipboard) in my app only works properly when a breakpoint is hit inside the function. This got me wondering, what exactly does the debugger do (VS2008, C++) when it hits a breakpoint? ...

Debugging Question - VS 2008 web services on Cassini

I'm testing a web service in Visual Studio, and stepping through using the debugger. Then I click stop debugging. This stops the debugging session, but the program continues to run like a runaway train. Is this a "bug" or a "feature" of Visual Studio 2008? If it's a feature, how can I tell Visual Studio to halt execution when I click...

Is there a way to use PostSharp without installing the package.

I would like to automate the deployment of Postsharp that's why I would like to have a text file that would preserve the necessary deployment settings. ...

C++ Multitargeting in VS2010 Beta 2

Does anyone know if there is a way to get the new multi-targeting in VS2010 Beta 2 to target v8 toolset? ...

Visual Studio IDE from the perspective of a UNIX programmer

I've been programming in Linux/UNIX for several years now, but recently I needed to do some stuff in VS2008. I had difficulties with understanding how VS organizes work. Do you know any resources (free web pages preferred, but books also acceptable) which would show me a general picture and explain at least some details? Examples welcome...

Should I stop fighting Visual Studio's default namespace naming convention?

I'm working on an MVVM project, so I have folders in my project like Models, ViewModels, Windows, etc. Whenever I create a new class, Visual Studio automatically adds the folder name to the namespace designation instead of just keeping the project-level namespace. So, adding a new class to the ViewModels folder would result in the namesp...

Use attribute to omit code from coverage analysis in Visual Studio

I have some classes that, for one reason or another, cannot be or need not be unit tested. I'd like to exclude these classes from my coverage metrics so that I can get a better feel for the coverage on the classes I actually care about. Right now I have to exclude the results after the fact. What I would like to do is use an attribute...

Project Reference in RDLC ReportViewer Report

I have a Visual Studio 2005 solution which contains two projects - a Windows Forms project in VB and a class library in C#. My VB project includes an RDLC report file. I have recently learned that you can add custom code and external references to an RDLC report. I would like to reference my C# class library from the RDLC file (which, ...

c# autocomplete colors, images?

Does anybody know if there is a way for the autocomplete customsource is able to contain colors or images? I would like to be able to distinguish different suggestions by color or maybe even image. It can be similar to the new firefox autocomplete addressbar. ...

Visual Studio & SQL Management Studio: How to revert Ctrl+Tab behaviour to normal after using Microsoft Narrator?

By default, in Visual Studio and in SQL Server Management Studio, Ctrl+Tab opens a navigation popup which lists all the open windows. The idea is that you can press Tab multiple times while keeping Ctrl pressed; as soon as you release Ctrl, the navigation popup disappears and the selected document is activated. Unfortunately, as soon as...

Why is Visual Studio constantly trying to create a 'dummy/empty' file?

Hi folks, I just ran Process Monitor (by Sys Internals) for the first time on this Win7 RTM machine to figure out the paths VS2008 uses when compiling (so i can exclude them from my AV). Check this out .... WTF? Every 6 seconds (or so), it's trying to CreateFile at some invalid path. If u notice (in the pic) i've turned off all det...

what is this command in c# "C:\\WINDOWS\\system32\\vsjitdebugger.exe -p %ld -e %ld -g %ld\"

Hi i came across this command, i want to know what this command for, and what are the options for? i am looking for brief introduction & any source links for basic explanation. Thanks, ...

Best practice to integrate custom build tasks in Visual Studio 2008 Project/Solution

To increase the automated part of our build/release process, I would like to integrate some custom tasks in our visual studio projects. What's the best way to organize such solutions? The main problem is: If I add the project implementing the tasks to the solution, the tasks are cached by the visual studio instance. So a rebuild does not...

If I install Visual Studio 2008, Visual Studio 6.0 will work or not?

Using Visual Studio 6.0 I want to use Visual Studio 2008 also. I Already Installed the Visual Studio 6.0 (VB6, Foxpro Package) in my system, Now I want to install the Visual Studio 2008(.Net Package). Is Possible to install? If I install Visual Studio 2008, Visual Studio 6.0 will work or not? Can any one help me? ...

Visual Studio macros: WindowActivated handler turns clicks into double clicks

If I add a WindowEvents_WindowActivated handler to my Visual Studio 2005 Macros EnvironmentEvents module, I get a weird side-effect: when I click from one window to another in Visual Studio, that click is treated as a double click. So for instance, I put the focus in an editor window and click a file in Solution Explorer, and the file o...

T4 transformation and build order in Visual Studio

I have a VS project that contains: 1. A Pre-Build action of running TextTransform on a "template.tt" to generate "generated.cs" 2. "generated.cs" listed as one of the files to compile (i.e. in the list of project files When I build the project, the pre-build action is done, "generated.cs" is re-created but VS compiles the previous versi...

TFS & Visual Studio integration - Get Latest does not always work?

I'm developing in Visual Studio 2005, using TFS as the source control. Whenever I haven't been working on the solution for a while, I always do a recursive Get Latest in Solution Explorer. However, this doesn't always seem to work. If I know I don't have the latest version of a file, even right-clicking this (in Solution Explorer), cho...

Visial Studio Syntax Highlighting Keyword List

I am working on customizing a highlighter to be used on my web site. I want the highlighter displays the code in the same way as Visual Studio. I ran into a problem - Visual C++ displays classes from MFC and C# displays .net classes in color. Here the question is - is possible to get a list of these tokens (both C++ and C#)? ...

howto collapse all XML comments in Visiual Studio 2008

Hi, i was wondering if there is an plugin, addon or any other easy way to get rid of the bloated xml comments for c#? Company wants the documentation, but in my daily work the comments are simply polluting the code. It would be nice to have an easy way to simply collapse all xml documentation before the methods to one line or even bette...

Getting bad generated code from "Update Service Reference"

In VB.NET (using Visual Studio 2008) my WCF service has an interface something like: <ServiceContract()> _ Public Interface IThingService <OperationContract()> _ Function GetThingByNumber(ByVal thingNumber As MyKeyClass) As Thing <OperationContract()> _ Function GetThing(ByVal thingId As Guid) As Thing ' ... End Inter...