visual-studio

Visual Studio Extensibility Resources

Anyone know of any good resources for getting up and going with Visual Studio Extensibility (tutorials, etc.)? There seems to be little around the net as far as I can see. Or mayabe I'm just using the wrong keywords in Google. What I'm generally having trouble with, at the moment, is navigating through a solution and accessing code fi...

Visual studio debugger: Break on entering an external function?

Hi, With "Just My Code" turned off and a source location/server, it's easy to step into functions that are not in your code. Is there a way to set a breakpoint on one of these, though? Basically I want to say "when this function is called from anywhere, break and show me the source". I tried the "set function breakpoint" and entering th...

How do I add new platform targets to VS2005

In an effort to nicely organize the 6 or so different platforms that our project covers, I'm looking for a way to extend visual studio 2005 so that I can have mare than just the standard list of target platforms for a project. VS allows you to create your own solution platform by just entering any name you want, but for projects, it see...

Load Visual Studio Macro project from a solution file

Is there a way to specify in a solution file to load specific Macro project? ...

How to create a template for visual studio 2008 for multiple projects

Hi, I want to create a template kind of thing where there will be more than one project in the solution. Like one test project + one normal project + some other project. How to do that. When I export a template it exports only one project. ...

Create keyboard shortcut to regionate method

Hi, can i in Visual Studio create keyboard shortcut to regionate method and auto-document it with GhostDoc? From this: protected override void OnInit(EventArgs e) { base.OnInit(e); } i want make this: #region protected override void OnInit(EventArgs e) /// <summary> /// Raises the <see cref="E:Init"/> event. /// </summary> /// <p...

Is there a way to suppress warnings in C# similar to Java's @SuppressWarnings annotation?

Is there a way to suppress warnings in C# similar to Java's @SuppressWarnings annotation? Failing that, is there another way to suppress warnings in Visual Studio? ...

ASP .NET Development Server not serving everything all the time

I'm using Visual Studio 2005 on a Windows XP SP3 machine and recently have come accross a some what strange issue. I have a C# and ASP.NET project that runs fine when on the team test server and using IIS locally on my own machine. However, running it using the in-built Visual Studio ASP.NET Development server it doesn't seem to serve a...

Can a app built with Visual C++ 6 use a DLL built with Visual Studio 2008?

I'm developing an SDK, and we have clients that are still coding with VC++ 6, while others use Visual Studio 2005 and others with 2008. Currently, we build several flavors of our SDK, where we build the exact same source code with each of those compilers. I want to find out if that is really necessary. Is it safe to build our SDK (whic...

Change comments in Visual Studio 2008.

How do I change the comments to look like /* */ instead of // in VS 2008? ...

Visual Studio Keep Session between rebuilds etc

Hello, I would like to know if there is a way to keep the session going. I've got sick of losing my session between rebuilds/builds, if I change too much in my project or submit code to our SVN (tortoise via VisualSVN). I'm developing an ASP.NET MVC project with lots of jQuery. I would like to do this as I test my project on one scree...

visual studio - run several applications at once

The project, I work on, consists of several executables which run in background and a frontend. I develop in Visual Studio 2005. Often I need to run one background app with breakpoints enabled and then control it from the frontend. I set the important background app as a startup project and press F5. Then I start the frontend and the oth...

How to force the build to be out of date, when a text file is modified?

The Scenario My project has a post-build phase set up to run a batch file, which reads a text file "version.txt". The batch file uses the information in version.txt to inject the DLL with a version block using this tool. The version.txt is included in my project to make it easy to modify. It looks a bit like this: @set #Description="Ta...

TFS work item query by linked worked items?

Let's say I have a bunch of bugs (work items) that are all linked one work item. How can I right a work item query to fetch the list of all bugs linked to a specific work item? I can see the list of linked bugs when I look at the specific work item but I'd like to be able to create a query for this. Thanks! ...

Using a Visual Sourcesafe 2005 database with VB6 still launches VSS 6.0d

I know all versions of VSS have many horror stories and I feel I will escape to a better source control mechanism someday but in the short term I am just trying to do a little cleanup and would like your advice on this issue: Objective - consolidate old VB6 source code in a "new" VSS 2005 database (currently all these old projects are c...

Printing Gray Lines with MFC/VS6

Hi, Does anybody know the "magic trick" for printing gray lines in an MFC/VS6 based application, using the PS_SOLID style? It works when printing to PDF, but I just get black lines when printing to my black/white laser printer. It also works with the PS_INSIDEFRAME style, but it seems strange to me that a normal PS_SOLID can't do gray...

VS 2010 macro - select from here to there

I'm writing a macro to let me replace the spaces in a string in my code file with underscores. I've gotten as far as finding the beginning and end of the string as instances of VirtualPoint. Now I'm trying to select from the first VirtualPoint to the second. And I can't figure it out. I know the VirtualPoints are correct, because I'm...

What is the command for block select in Visual Studio 2008

In visual studio you can select a block of text by holding down <alt> when when selecting text with the mouse. This is very useful for selecting a column of data or text as opposed to the entire line. In Visual Studio 2003-2005 this operation could be performed by holding <alt><shift> in conjunction with the arrow keys but the keyboard ...

Insert a snippet from a Visual Studio macro

I have a situation where I want to run a Visual Studio macro that has the user type something in an InputBox, then inserts a snippet and includes that text somewhere in it. Unfortunately, I can't figure out how to insert the snippet from macro code. It seems like it'd be something like DTE.ExecuteCommand("Edit.InvokeSnippetFromShortcu...

ASP.NET WebControls are not appearing in my VS 2008 toolbox

It's been a while since I've created a new ASP.NET web application. (I've been doing ASP.NET MVC for the last 9 months, and hadn't done an ASP.NET site for about a year before that.) Now I've created a new regular ASP.NET app and when I look at the Default.aspx file, Visual Studio is only displaying the HTML tab in the Toolbox. I don't h...