visual-studio

Solution File in VS 2008

I have referenced a config file that is located in a solution folder. I then reference that file in my projects. How do I get that config file into the bin directory when I publish the project? ...

Visual Studio (with Team Foundation Server) - How to get back to "Resolve" screen?

Hi, I started resolving conflicts in a merge and then had to quit to set something up. Now I don't see any way to get back to the stupid conflict resolution window. If I try to merge again it just gives me a bunch of warnings about the pending merge I already have? This is in Visual Studio 2005. ...

.NET 4.0 and Visual Studio release date

What's the release date of Visual Studio and .NET 4.0? ...

How to debug a Visual C++ Runtime Error

I am writing a C++ COM object in Visual Studio 2008 that is an Internet Explorer Browser Helper Object. Recently, when running in IE, IE has started frequently popping up a dialog titled "Microsoft Visual C++ Runtime Library" with an error message "Runtime Error!" and going on to say that "The application has requested the Runtime to ter...

Need help moving nUnit tests into separate project

Everything works fine when the unit tests class is part of the main project (TestAccount). Every article I've read about unit testing recommends putting the tests in a separate project, so I... added another project (TestAccount.UnitTests) to the solution moved the unit tests class (AccountTests.vb) to TestAccount.UnitTests and ...

Most used IDE Keyboard Shortcut

What are the most useful keyboard short-cuts in an IDE I know of Visual Studio: SHIFT+ALT+F10 - Show Smart Tag I wish there were Eclipse like functionality below: CTRL+SHIFT+H - Show Hierarchy CTRL+T - Find related Types CTRL+SHIFT+T - Open Types ...

Install VS 2008 Team Developer on Windows 7

Has anyone successfully installed VS 2008 Team Developer edition on the Windows 7 beta yet? Every time I try, i get an error about insufficient privileges in C:\Windows\Winsxs. I was able to install the VS 2008 Team Database edition with no problems, and had thought that maybe installing the Dev edition after the DB edition might take ...

How can I set up different build configurations for ASP.Net web site projects?

According to an earlier question about Visual Studio configurations, there's no way to use Visual Studio's configuration manager to create different configurations for an ASP.net web site project. For normal projects, we have #if directives that switch certain server or database variables depending on whether we're debugging or in pro...

Visual Studio: How can I see the same file in two separate tab groups?

I want to be able to edit one method while looking at another method in the same file, as reference. Can this be done? ...

How: MSI for multiple websites WITHOUT custom actions

I would like to create an installer that installs 6 websites, all of which rely on a data access library. So the solution contains 6 web applications, and 1 class library. Question is: how can I accomplish this without using custom actions? So far, the only thing i've thought of is to make merge modules out of the web app projects, ea...

How can I reference a dll in the GAC from Visual Studio?

This assembly is in the GAC: Microsoft.SqlServer.Management.RegisteredServers.dll How can I add a reference to this assembly in Visual Studio? I can view the file in c:\windows\assembly\ ...

Can intellisense be exported or extracted from Visual Studio to a text file?

I'm trying to write some documentation for a webservice that has been provided by one of our vendors for an application we're integrating. A bunch of the interface is custom objects defined in the web service itself. The vendor has put up significant resistance to providing any documentation for this application and so I've taken it up...

Visual Studio XSD files with DLLs for Web Projects

I'm trying to create a DLL using a Dataset.XSD file to access my website's VistaDB database. The DLL develops and builds fine but I need to build the DLL once and then change the "path" of the database in the all the Website projects that finally references the dll (different databases and therefor database paths for each website that r...

Why does OpenCV reject cvLoadImage("string.ext"), but accept cvLoadImage(argv[1])?

#include "cv.h" #include "highgui.h" #include <stdio.h> int main(int argc, char* argv[]){ cvNamedWindow("Window1", CV_WINDOW_AUTOSIZE); IplImage* image = 0; ->->image = cvLoadImage(argv[1]);<-<- if(!image) printf("Unable to load image!"); cvShowImage("Window1", image); char c = cvWaitKey(0); cvReleaseImage(&...

Are there any known issues of VS 2003/2005 and 2008 coexisting?

Does anyone know of any issues with VS 2003/2005 and 2008 co-existing on the same install. The registry hives are all separated and the .net frameworks all have their own locations. Only issue I can think of is the Web support (which can either be 1.1 or 2.0 but not both) Am I missing anything? Am I going to run into trouble? EDIT ...

How to keep code base and database schema in synch?

So recently on a project I'm working on, we've been struggling to keep a solution's code base and the associated database schema in synch (Database = SQL Server 2008). Database changes occur fairly regularly (adding columns, constraints, relationships, etc) and as a result it's not uncommon for people to do a 'Get Latest' from source ...

Visual Studio plug-ins : where should I store my tool's window last size and position ?

I have written a small plug in for Visual Studio 2005. It displays the name and the shortcuts of the last command you have used (nice for learning seldom used command's shortcuts). I display this information in a window that I manually dock between the project explorer and the property panel. The problem : every time I start Visual Stu...

How can I use aspnet_compiler from a bat file?

I need to execute aspnet_compiler from a bat file that I maintain to automate the publishing of a ASP.NET application from within CruiseControl.NET. aspnet_compiler runs fine if I manually open the Visual Studio Command Prompt, but doesn't run if I open a normal cmd.exe. What steps should I take to make aspnet_compiler accessible throu...

Moving an arbitrary setting to a toolbar in Visual Studio

I want to be able to modify a certain setting of Visual Studio right from the toolbar. Specifically, the number of parallel builds (Tools | Options | Projects and Solutions | Build and Run | maximum number of parallel project builds). It can be either an edit box right on the toolbar or two buttons setting it to certain values. I use V...

Visual Studio: Varying tab width/options by .VCPROJ or .SLN file?

Some of our projects call for default Visual Studio tab options (width 4; keep tabs); some call for width 3; use spaces. Don't ask. Rather than set these globally, is there anyway in which I could set this on a per-solution or per-project or even (emacs-style) per-file? Visual Studio 2005 and 2008. ...