visual-studio-2008

Quality Indicators TFS 2008 report and multiple build types

In a project we have two build types, one for continuous integration and one that runs our test suite. When the Quality Indicators report is run, it displays data from all builds regardless of build type. The report suggests that one can only run it on a specific build type but the query that populates the builds field only seems to wo...

How to prevent Visual Studio 2008 from checking references in .aspx files?

There was a registry fix for Visual Studio 2005, but it does not seem to work for 2008 and variable renames, finding all references in an APS.NET project is extremely slow. ...

Creating Docking Panes in CView instead of CMainFrame

When creating an MDI Application with "Visual Studio" style using the AppWizard of VS2008 (plus Feature Pack), the CMainFrame class gets a method CreateDockingWindows(). Since I don't want all panes to be always visible but display them depending on the type of the active document, I made those windows to members of my views and also mo...

StackOverflow atom feed to use with VS2008 Start Page

Is there a URL for StackOverflow that I can use on the VS startpage in place of the never updated MS page? The URL that VS uses can be set on the Tools->Options::Startup dialog. I've tried http://stackoverflow.com/feeds VS complaints with the following error: The current news channel might not be a valid RSS feed, or your interne...

How can I overcome the "error C2100: illegal indirection" when accessing the contents of a void* in VS2008

I have a C application that I've created in VS2008. I am creating a mock creation function that overrides function references in a struct. However if I try and do this in a straight forward fashion with something like: void *ptr = &(*env)->GetVersion; *ptr = <address of new function> then I get a "error C2100: illegal indirection" err...

Context help in Visual Studio

Is there a way to change the context sensitive help in Visual Studio so that it will only search against the text under the caret instead of a complilation error in your code? More info: After you compile and receive a compilation error(underlined), placing the caret within the underlined text and pressing F1 will take you to the Compli...

How do you auto-deploy a website during a release build?

I'd like to upload (via ftp) a website when doing a release build in visual studio 2008. I don't want any source code files to be uploaded and it would be nice to configure which folders should get uploaded. I'm using either ASP.NET Web Applications or MVC. How do I configure VS.NET to automatically upload (and overwrite) the last dep...

Use Compiler/Linker for C++ Code Clean-up

I'm using VS2008 for a C++ project. The code is quite old and has passed through many hands. There are several classes hierarchies, functions, enums and so on which are no longer being used. Is there a way to get the compiler/linker to list out identifiers which have been declared or defined but are not being referred to anywhere? ...

How do I get the C# Query component to recognise columns returned data from a temporary table in a sql stored procedure

I've created a stored procedure similar to the one below (I'm using this cut down version to try and figure our the problem). CREATE PROCEDURE bsp_testStoredProc AS BEGIN CREATE TABLE #tmpFiles ( AuthorName NVARCHAR(50), PercentageHigh INT ) -- Insert data into temp table SELECT AuthorName, PercentageHigh FROM #tmpFiles ORDER ...

Generation of designer file failed: The directive is missing a 'tagprefix' attribute.

When adding a reference to a user control in my web project, I type <%@ Register Then the IDE steals my focus and puts it in the Error List pane, on the error "Generation of designer file failed: The directive is missing a 'tagprefix' attribute." Obviously there isn't a tagprefix attribute yet, I'm still typing the tag! H...

TSD3004 error with Visual Studio 2008 Database Project

I am using Visual Studio Team System 2008, version 9.0.30729.1 SP. I have a database project that I was working with yesterday with no issues - I was able to build and deploy the database successfully. Today, however, when I open the solution I receive what is listed as a "Warning" that halts any Build/Deploy/etc process, but cannot be s...

How to fix code-complete in Visual Studio 2008

The code-complete feature in Visual Studio is very useful, and it still works for C# and C++ code - but no longer works for XAML (XML) editing. Is there a setting somewhere that can re-enable this? My co-workers still have it working. ...

Phalanger with cakephp

Has anybody been able to use CakePHP in Visual Studio using Phalanger ...

How to get Visual Studio 2008 Object Test Bench to work?

I'd like to use the Object Test Bench in VS2008. The docs - and even the helpful text in the test bench window - say to right click on class in the Class View. Further reading indicates that this class must be in the startup project or referenced assembly. I've tried this on numerous classes - public, private, static, you name it - in se...

How to set a default value using "short style" properties in VS2008 (Automatic Properties)?

Hi, How can I setup a default value to a property defined as follow: public int MyProperty { get; set; } That is using "prop" [tab][tab] in VS2008 (code snippet). Is it possible without falling back in the "old way"?: private int myProperty = 0; // default value public int MyProperty { get { return myProperty; } set { myPro...

How to use a different assembly name for different configurations?

In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as: MyAppDebug - in debug mode and just MyApp - in release mode Does anyone know if this is poss...

What is the best practice for compiling Silverlight and WPF in one project?

I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all in one project. My i...

How do you register a Windows Service during installation?

I have built a windows service application in VB.net 2008, and used the Setup Wizard to add an installation process. The installer works, in that it adds the app to add/remove programs and copies all of the files etc, but it's missing the final (required) step of actually installing the service. I have added the primary output of the P...

Visual studio intellisense for headers without .h

I am using a library that has headers without the .h This defeats visual studio's intellisense (declaration/definition lookup) Anyone know how to tell VS2008 that a file is a header? ...

What is the easiest way to add a Visual Studio 2008 Context Menu Item?

I would like to add a custom menu item when you right-click a certain file extension in Visual Studio. There seem to be some helper open source projects to accomplish this, but I'd like to ask if anyone has ever used them, and how easy were they - and can you help me and provide a starting point? One I've researched is: http://www.code...