visual-studio-2008

How do you use debugging to step into a class in a web application from a test project in the same solution?

When using NUnit and the test project, we haven't been able to find a way to step into the class we are testing in a web application. We are using TestDriven.NET add-in for Visual Studio 2008. We are able to hit a breakpoint in the test project, but not step into the web app class that is being tested. ...

How can I get "Copy to Output Directory" to work with Unit Tests?

When I build a unit test project before the tests are executed the test output is copied to a TestResults folder and then the tests are executed. The issue I'm having is that not all the files in the Debug/bin directory are copied to the TestResults project. How can I get a file that is copied to the Debug/bin directory to also be copi...

Error for a program compiled under VS2008

Hi, I have just compiled an open source program under VS2008, the compilation is success. But when running, the program crashes with error can be traced back to std:list. The author claimed that the program can be compiled successfully under VS2005 and VS2003, I'm quite new to VC++ thus I don't know much about any change to base library ...

Visual Studio 2008 not loading MFC dll symbols

Visual Studio 2008 doesn't appear to be loading symbols for MFC dlls when I debug my application. This used to work fine in 2005 - ie. when it loaded the dll it said "Symbols loaded" and can then debug it. In 2008 (having upgraded to MFC 9, so they are different libraries) it doesn't say that it's loaded symbols for the MFC dlls, and lat...

How to use VisualSVN with a solution shared between VS 2005 and VS 2008?

Hi, After looking at other questions related to sharing solutions between VS 2005 and VS 2008 it seems that the way to go is to have two solution files (one for VS 2005 and one for VS 2008). However, if the solution is under source control (VisualSVN in our case), how would we maintain two solution files and not keep overwriting one ...

View Code / Designer Missing in VS 2008

Very often when working on an ASP.NET web site, the options View Code and View Designer will be missing from the content menu in the code window, as well as missing from the View menu. They are only available in the context menu in Solution Explorer. This happens when debugging and when not debugging. Anyone know what could be causing...

How to not sign a ClickOnce Manifest

I have an office 07 (specifically Outlook 07) add in created in VS 08. When I uncheck the "Sign the ClickOnce manifests" option, and then publish, it rechecks that option automatically. I have a regular winforms project in the same solution that allows me to publish with this unchecked. Any idea as to why it isn't allowing me to unche...

How to refactor: split a class into two which communicate via an interface

I am just embarking on my first large-scale refactor, and need to split an (unfortunately large) class into two, which then communicate only via an interface. (My Presenter has turned out to be a Controller, and needs to split GUI logic from App logic). Using C# in VisualStudio 2008 and Resharper, what is the easiest way to achieve this?...

Questions on differences from ASP.NET 2.0 to ASP.NET 3.5 MVC

We are moving from regular 2.0 webforms with no testing to TDD MVC I'm looking to find out all the requirements for making the jump from 2.0 to 3.5 MVC. Does SQL Server 2000 work with .net 3.5? Does the MVC Framework come with .net 3.5? How does AJAX work with all this stuff? Is visual studios team suite worth the time/money? ...

Is there an attribute I can add to a class so it will be edited as code, not in the designer?

I've made a class which inherits from UserControl, but which I only want to use as a base for subclasses. Is there a way I can stop VS2008 from trying to edit it in the designer, that won't stop the subclasses from being edited in the designer? ...

Colors in Visual Studio 2008

Hi, I'm struggling with Visual Studio 2008. I've used some form of "Zen" colors for more than I can remember. In VS2008 I keep getting one color that I cannot read and I have been unable to identify it; the purpose of the question is to avoid trial an error (the VS color interface is really ugly with no "real time" apply button). If y...

Strategies for multicore builds (/MP) that use #import

I'm working on a new solution configuration for our large VC++ project using VS 2008. I'd like this configuration to use the multicore build flag /MP. However, the "#import" feature of generating COM wrapper classes is sprinkled through-out the code base and this feature is not supported when using /MP. I understand why #import won't ...

WebControl in website project

I have created a website project in VS2008 and in the appcode folder I have created a class deriving from System.Web.UI.WebControls.WebControl. I need to use this control in one of my webforms. I can't figure out how to. ...

Properties page not displaying in Visual Studio 2008

I'm using Visual Studio 2008 Team Development Edition and my Project properties page will not display. I right-clicked the project name and selected "Properties" and no page displayed as it normally would. Also, when I double-click the Settings.settings the normal Settings GUI does not display. I only see the XML in the Settings.sett...

Troubleshooting Visual Studio 2008 crash when loading a solution

I've downloaded the source for SubSonic via SVN. When I try to open the project in Visual Studio 2008, it converts the solution, loads all the projects then disappears without an error message. Subsequent loads of the solution do the same. If I run devenv /safemode and then open the project it works fine, but I can't use any add-ins. An...

Can't import settings in Visual Studio 2008 SP1

I recently baselined my machine and installed VS2008 and I am trying to import my settings file: http://naspinski.net/file.axd?file=naspinski.vssettings I click Tools->Import Settings, select Import selected environment settings and click on Next Next screen I select No, just import new settings, overwrite my current settings and click...

How to set a default configuration in a Visual Studio Solution File?

Hi All, In VS2005 and up, is it possible to specify which configuration should be selected by default? I have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Source Control use the right solution (unless of course they specifically choose anoth...

Can several suites of the same version of Visual Studio be installed Side by Side ?

Hi, I would like to know if I can install say Visual Studio 2008 Pro and Visual Studio 2008 standard on the same machine. I have tried to install the pro (trial edition available on MSDN) after the express, and it seems to require them to be installed in the same directory. Is this specific to the express edition ? The reason why I am ...

Visual studio 2008 - Find in files : lists everything twice

In VS2008, I have a web-site project. When I use find in files and search for a string, the find results window will list every occurence twice. What could be causing this? [EDIT] Below is the screen capture from VS. I was searching for the work CommissionBucketProductID within my website project. Notice that each line is returned twi...

Detect .NET Framework 3.5 SP1 Dependency (cmp. 3.5 w/o SP1)

I'm using 3.5 SP1 on my machine, while our customers currently use 3.5 without SP1. I don't know any way in VS2008 to target the solution or project to 3.5 without SP1, only the 3.5 with SP1 I have installed. If we use functions or constructors not available in 3.5 w/o SP1 the code will not work properly. That is, I want to detect at c...