visual-studio-2008

.NET: How to convert a windows form to a windows control

I have a a .NET 3.5 windows form which I'd like to embed into another form. Is there a quick way to turn that form into a control? Thanks ...

Problems with setting application icon

(I'm using Visual Studio 2008, though I remember having similar problems with older versions as well.) I've tried several different methods (many of them mentioned in this other question), but I am still having some strange issues: When including an icon as a resource, it does show up as the executable file's icon immediately, but for...

Visual Studio 2008 macro to switch between header and source files?

Does anyone know how to make a macro or something to switch between foo.hpp and foo.cpp? I would really appreciate having a macro like this. I guess it would help if it actually opened the corresponding file, but kept the old one in a tab. Thanks ...

Missing templates after re-installing VS 2008

I installed VS 2008 and I installed .NET 3.5 SP1 and I got all templates. Then, I had to uninstall VS 2008 (please don't ask why) without uninstalling .NET Framework 3.5 SP1 or anything else. After that, I re-installed VS 2008 back, then I open up VS 2008 and found that when I add a new item the Entity Framework template is not among t...

In Visual Studio, what's a quick way to delete all the exclude files from a project?

I have a LARGE project in visual studio 2008. It has an accumulation of a few years of trying things out and often excluding (not deleting) files from the project. I need a way to permanently delete any excluded file. There are thousands of files and hundreds of folders. Doing it manually in solution explorer would take too much time....

Visual Studio 2008 with ASP.NET 3.5 debuging using attach to process is not working

Hi, I am so used to attach a process when debugging ASP.NET application in .NET 2.0 and VS.NET 2005. I don't know what happened to this functionality in VS.NET 2008. I also don't want to do debugging by starting from the start page because when the application is big enough you don't want it to be compiled and you sometimes cannot catc...

vs 2008 javascript intellisense in XML file problem

I am trying to get javascript intellisense to work for jQuery in a .xml file. I've already used a custom XSD to provide intellisense for the XML. Under the tag, I have a mixture of HTML and javascript which are enclosed by . And it is all greyed out so no intellisense there. Adding a /// does not help as well. I would really like to ...

Publish outside unit test results in Visual Studio 2008

Hi. I got an xml file with test results. I tried to add the results to Visual Studio 2008. I did almost everything right except getting the project name which i can't extract from the .xml file to the .trx file The question is what is the correct format of the .trx file so it will show me the project name. ...

How do I share user controls between web applications in ASP.NET?

This question is a follow up to my question about sharing resources between web applications, because I have not yet found a good solution. I have a web application with user controls and resources that are shared by three other web applications. Solution | +-CommonControlsWebApp | +- resources | | +- images | | +- scripts | | +- s...

How to get intellisense when doing XAML data bindings?

It would be nice if in XAML when I define ItemsControl/ItemsSource="{Binding AvailableContracts}" that Visual Studio would be smart enough to go find the property AvailableContracts on the ModelView which the DataContext is bound to, reflect it, and then when I type: <TextBlock Text="{Binding Path= it would pop up intellisense of the ...

Visual Studo Asp.net Website Compilation error: Child nodes not allowed

"Child nodes not allowed" seems to be notorious compilation error on Asp.net website if you do some googling. Environment: WinXp, VS2008 and VS2008 SP1, .NET 3.5 SP1 Behavior: create a brand new Asp.net website (not web application), then just build it, you got compilation error "Child nodes not allowed" on the Web.config on line where...

Visual Studio 2008 unit tests and nunit

When you right click on a method in a code file in Visual Studio 2008 you get this which creates the unit test skeleton for that method. Is there a way (by means of a template change or some nifty hack) by which I can change this to create unit tests based on Nunit rather than Visual Studio unit testing tools? Something like this… ...

The referenced component 'System' could not be found. (or any other component for that matter)

The issue was reported as a bug to the VS team here but was closed as not reproducible since the original poster didn't reply I guess. I added my validation to the case, but I still can't find a workaround to fix this. Issue: Just started today, all references to any assembly outside of the solution fails to resolve, with "The referenc...

PROBLEM encountered visual studio 2008 installation

I installed visual studio 2008 package FULL option. It worked with out any problem. I installed Vstudio 2008 and MSDN in separate folder in the D drive. 2 days later in order to remove my projects i uninstalled every thing and also i deleted visual studio 2008, visual studio 2005 folders from C:\Documents and Settings\IRCTC\My Documents....

Why doesn't the "Namespace Provider" property get saved within a project file for a given subdirectory?

Sub directories within VS2008 projects are mainly used to physically represent on disk the namespace structure for the project. Each folder has a Boolean property called “Namespace Provider”, which when set to True causes ReSharper to validate that the physical location of a given class corresponds to the logical namespace location. Occ...

How can I identify whether an ASP.NET site is being run "normally" or in "debug" via Visual Studio?

How can I determine what 'mode' my site is running under? In this specific case, I have code in the code-behind pages that should act one way in 'release' mode - that is someone navigating there with a browser, and another way if I'm in debug mode coming from VS2008. (These are things like identifying which SQL connect string to use, w...

Referencing other schemas from a VS2008 database project

What is the secret to getting my VS2008 SqlServer database project to recognize that my view definition is pointing to a table in another database (not part of the db project) and thus stop failing to build? Is there some way to tell it I am referencing a table outside of the project itself? ...

VisualStudio immediate window command for Clear All

Anyone know of a command to clear the immediate window in visual studio? I hate having to grab the mouse for a right click menu there - would rather just type "cls" or something. ...

Visual Studio 2008 Painfully Slow Under SVN

I have recently been through the pain of converting an legacy WebSite project to a (C#)Web Application Project. During this time I also migrated the code from VSS control to Subversion on a dev server. When debugging the application under VS2008 the project can literally take 4/5 minutes to completely load up. The majority of this time ...

Create an Item/Project Template in Visual Studio

Good Day, I'm trying to figure out how to create an Item Template but according to the online articles I've encountered so far, all of the articles point you to an Export Template Wizard tool under the File menu option. My problem is that this feature doesn't exist and I can't seem to find it. I'm using Visual Studio Team System 2008....