visual-studio

Will installing the 'upgrade' visual studio 2010 wipe 2008?

Will installing the 'upgrade' visual studio 2010 wipe 2008? Or will they both remain installed? I want them to both remain installed on the system if possible.. ...

Visual Studio Designer: Opening XML files as a Grid (hidden feature)

I once had this Add-In to VS2005 that allowed me to edit XML files in a Excel-Like table view. I would access it by right-clicking an XML file from within Visual Studio, click Open With, and then select the Add-In. I would then be able to read/write my simple XML in a nice table format. The way I remember it, this feature was shipped...

Problems with VS2010, Framework 2.0 and KB979909

Our team has installed VS2010 on Friday afternoon. When I came into work on Monday morning, it appeared the installation of the .Net Framework (specifically the 2.0 part of it) was corrupted. Programs were complaining that they couldn't find 2.0 assemblies, and our main app was failing to start. Reflector wouldn't start because it couldn...

Visual Studio - Configure Startup Projects

I have a solution which includes a WebSite, a few Code Libraries, a WCF Service and a project that hosts the WCF service, which is basically just a web application with a .svc file in it. The problem is that when i run the website, both the WCF Service and the WCF service start on two different ports. I would need only the WCF Service ho...

Visual Studio 2010 Snippet Generator

I'm looking for a good tool to generate snippets for Visual Studio 2010 without having to manually edit XML ...

Why should I switch to CodeRush from ReSharper?

For a long time I have been working with ReSharper. But after seeing CodeRush being used in a tutorial video, I started to wonder if I should consider to try CodeRush as well. But before giving a try I wanted to ask you if you've had a chance to work both with ReSharper and CodeRush, so that you could share your objective opinions on t...

How can I display the value of the register EAX as an object in the debugger?

I would like to inspect a method's return value without having to re-execute the method itself. I believe my only option is to use the disassembler. I came to this conclusion after reading the responses to Stackflow question http://stackoverflow.com/questions/1704268/getting-a-methods-return-value-in-the-vs-debugger. I think the value...

Automatically Reloading a Referenced COM Interop Assembly when it is Rebuilt

I have a Visual Studio 2008 solution that has the following projects: a C++/ATL COM library a C# library that uses the COM library a C# unit test library (using MSTest) that references the other two libraries The C++ COM library project has a Custom Build Step that builds a .NET interop library, which looks like this: tlbimp /asmver...

Visual Studio 2008 - Default Encoding style with .SQL files

Tools used: Visual Studio 2008 Team Foundation Server or Visual Source Safe Backstory: We add our SQL files to our source control. We do this by adding them to the solution with the .sql extension and checking them in. By default these files are saved as unicode. What that means is that user A can save foo.sql and user B can get late...

Is there a way in a visual studio database project to exclude certain object during deployment?

I have a scenario where I am using a visual studio 2010 database project to deploy changes to multiple database installations, but on certain ones I want to exclude a set of views from that copy. Is there a way using build configurations to exclude these views from being deployed? ...

Missing resource runtime exception when form tries to load picturebox

Hey guys. I'm trying to put a picture in one of my forms. I dragged a picturebox onto the screen and clicked "Choose Image" and picked my image from the dialog box. When I run it, however, I get a runtime error: An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional...

How to create a F# based Visual Studio Add-In?

Even with F# installed, Visual Studio 2008 (and probably 2010) only provides Add-In project templates for C#, VB.NET and C++. So, how to create a F# based Add-In? I have tried to create a F# class library project with a new class implementing IDTExtensibility2, setting the correct references (EnvDTE, Extensibility, ...), copying a few ...

asp.net listboxes and XML

I have the following XML <?xml version="1.0" encoding="UTF-8"?> <Releases> <Release version="1"> <Status>Development</Status> <Date>18/8/10</Date> <Features> <Feature Name="Org"> <Developer>someone</Developer> <Deatil>ejfkhwekjfhefhw</Deatil> </Feature> <Feature Name="Export"> <Developer>Some dev</Developer> <Deat...

VisualStudio Default Code Discovery Method

A little while back (after recently installing VStudio 2010) I used the Go to Definition... feature and a little box opened up asking me if i wanted to: Use the object explorer Open Meta-Data View Something I can't remember Well I wasn't really paying much attention and selected meta-data view, I'd now like to set it to Object Explor...

Expanded/collapsed state not saved after closing file

In Visual Studio, you can expand and collapse code without using regions, for example in a code-behind page you can collapse methods, etc... And in an ASPX page you can collapse tags, tags, etc... It's useful when you have a long page and you want to focus your development on a specific part. What's cool about it too is that you can c...

How do I use the bitmap debug visualizer in Visual Studio 2010?

I'm attempting to use the bitmap visualizer in Visual Studio 2010, but when I bring up the quick watch window I don't see the magnifying glass described here. I set the app to full trust under the Security tab of the project settings but it didn't help. Has anybody successfully used the bitmap debug visualizer? ...

Studying tutorials for ASP.NET MVC2, struggling to apply to bigger problem

I am starting asp.net MVC2 by going through a few tutorials, but they are all too basic when trying to apply this to my real world problem. I have been following a tutorial based on a simple one table database. I build the data model using ADO.NET Entity Data Model and select to generate the model from database. Then I make a controller...

Farseer setup in Visual studio to work with C# and XNA

I have downloaded the folder containing the Farseer Physics engine. and I have a game that I am working on using C# and XNA. The issue Im having is that I dont know how to add the files for Farseer to my project so i can reference the functions in the code. How Do I do this? ...

Can I use mstest.exe without installing visual studio?

I want to use mstest.exe to run my unit test on build server, but I don't want to install visual studio on the build server. Can I just install mstest without visual studio? ...

How to disallow var keyword under .net 2.0 target?

I created new project in Visual Studio with target framework 2.0. But even if I left somewhere var keyword Visual Studio successfully compiles project. Is this the correct behavior as var is 3.0 feature? Is there any settings to prevent code with var to be compiled? ...