visual-studio

Resharper throws OutOfMemoryException on big solution

IDE Configuration: Visual Studio 2008 + Resharper 4.5.1 + Agent Smith 1.1.8. There is no any sophisticated configuration for last to add-ins. Solution description: 33 class libraries + web site with 200+ pages. Symptoms: After an hour of work under tuned on Resharper the IDE starts to throw the OutOfMemoryExection exceptions. Norma...

Debugging One Website In A Solution Of Four

I have a solution with four websites in it, when I debug a website I get four instances of the ASP.Net deployment server, can I just debug one website and not run the others? ...

Import data for visual studio unit tests

How can I use an external data file in my Visual Studio unit tests? If I try to just include it in the test project and set Copy To Output Directory to true, it still can't be found. What I have is: [TestMethod] public void DoMyTest() { using (StreamReader rdr = new StreamReader("MyTestData.txt")) { blahblah } } Howev...

Show All Files by default

Is there a way to switch on Visual Studio's Solution Explorer 'Show All Files' setting by default? ...

Attribute to add to an Interface for the default concrete class?

This probably isn't possible, but it's annoying enough to try... For convenience sake I'd like to be able to select "Go to definition" on a property or method on a variable defined as an interface and have Visual Studio go to the concrete implementation instead of the interface. Is there an attribute or something that I can use to instr...

Set the development server to serve from a subdir in Visual Web Developer Express 2008

I have been messing with this for a while now and cannot get it to work. I have a directory called "wwwroot" in the root of my project. When i start the debugserver from within the IDE it serves pages from my root dir and I have to click the "wwwroot" directory link. I want "wwwroot" to be available under http://localhost:1134/projectNa...

Proper build action when adding a non-reference dll to a .NET project in Visual Studio.

Lets say I want to include a DLL in a Visual Studio project that is not going to be a reference. In my case it will be a custom trace listener, but it might also be a DLL that I am loading via runtime binding. I don't want to add it as a reference because I don't want to introduce the possibility of any of my code statically referencing ...

Visual Studio Installer not overwriting files in target application directory

I have a Visual Studio 2008 solution that contains several projects. Most projects in this solution write a .dll when built. My installer project in this solution copies these .dlls to a target application directory. My uninstaller for this solution does not remove these .dlls, even though it should. My installer doesn't overwrite old ...

VB6 to VB.NET Visual Studio Upgrade Wizard hates some of my variable names

I am upgrading a VB6 to VB.NET project using the upgrade wizard. I know this is going to give me a lot of grief, but I am trying to make the old application useable. I'd rewrite it if I had time but am currently finishing up a summer internship and would like to get something working. One thing the wizard is doing that I can find no ju...

Why does BOOST_FOREACH not work sometimes with C++ strings?

I am using BOOST_FOREACH to iterate through the characters of a C++ string like this: void foobar(const string& str) { BOOST_FOREACH(const char ch, str) { // Do something with ch } return; } This piece of code works fine with the following compilation modes: Multi-threaded (Release) (/MT) Multi-threaded Debu...

ref and library C++/C#

Hello, I am working on C# for a few mounths. Mainly I am working on C++. On C++ using the visual studio if I wanted to add a a static library I could add it using the configuration of the project add the header and lib and path. When using C#, I think it is something like DLL, all those assemblies are complied on late binding ? In addit...

HowTo delete the Database ConnectionStrings stored in Visual Studio?

I have Visual Studio 2005 Team Edition for DB Professionals. After starting "Data --> Schema Compare --> New Schema Comparison...", i can choose a database from a DropDown. Unfortunately there are some old references that i don't need anymore. How can i delete those entries? ...

Visual Studio Web Installer

I've noticed the visual studio web installer, by default only allows you to setup a virtual directory for an existing website. Is it possible to get the installer to give you a choice to either create a website or install to an existing website? If not perhaps I am using the wrong installer product, or do I need to create a custom ins...

Deploying to Website or Virtual Directory

Is it acceptable to package a web service application in an installer that can only install to a virtual directory of an existing website? And not to its own website from the installer? ...

Is it possible to search intellisense in vstudio?

Is it possible to search or filter intellisense in visual studio? Basically i know there is an enum in the project that contains 'column', but the enum doesnt begin with 'c'. There has been lots of times where id rather not scroll through the hundreds (if not thousands) of valid objects it gives me. ...

What Report Services user id do I use when installing Team Foundation Server?

I'm trying to install Team Foundation Server for the main purpose of testing the source control tool. Upon installing the product on our server, it is asking for the Reporting Services user id. There are two problems with this. The first is that our reporting services environment is on another server. According to the people I work with...

Adding a reference to an assembly with a specific range of versions in Visual Studio

In Visual Studio, you can require that an assembly reference match a specific version of the assembly. Is it possible (maybe by directly editing the csproj or vbproj file in a text editor) to reference a range of versions. My specific example is I want to reference version 2.5.x of nUnit in my test projects at work. People run differen...

Default scope of a new class in Visual Studio

Is there a setting to change where all new classes I create will automatically be Public instead of Private? I thought I remember somebody saying that you can modify a template file, but I have no clue where to look. ...

How can I automatically export XML source comments to a text document?

I have been using XML comments to document my source code in VB.Net (and C# when I get to). I seem to remember someone telling me a long time ago that there was a way to automatically export the XML comments into a text document or other format for easy reference outside of Visual Studio. Is there? What is it, or are they? Thank you in ...

Visual Studio 2008 Crystal Reports - Horizontal Reporting

Hello everyone, Is there a way to setup a crystal report horizontally so that I would have my groupings span across instead of vertical? thanks in advance ...