visual-studio-2010

Custom WPF namespace mappings failing in Visual Studio 2010

I just installed Visual Studio 2010 and converted one of my Visual Studio 2008 WPF projects over for testing. While the project builds and runs correctly, the VS Designer cannot handle the custom namespace mappings I have giving the error: Assembly must be specified for XAML files that are not part of a project. Reopen this XAML fil...

Visual Studio 2010 .NET framework 3.5 unavailable

Hey people, I have installed VS 2010 Professional, and despite my tremendous urge to work on it since it is pleasing to the eye, it seems not to support .NET framework 3.5/3.0. Therefore, I have switched to VS 2008 rather relunctantly. Does anyone know, to add .NET framework 3.0/3.5 to the top right Combo Box within the make new pr...

How to make multilanguage C# console application?

I want to create console application in Microsoft Visual C# 2010 Express that will have support for a few languages: it will show messages in selected language. What is the simpliest and convenient way to make it international-ready? ...

starting visual studio 2010 causes BSOD on vista

I have just installed Visual studio 2010 ultimate on a machine running vista ultimate 32 bit. The install appeared to have gone fine but when you try to open the program it immediately goes BSOD and the machine reboots. I do not have time to see what is on the screen. Some facts that may have relevance: I had VS2010 beta 2 on before ha...

Copy object values in Visual Studio debug mode

In Visual Studio debug mode it's possible to hover over variables to show their value and then right-click to "Copy", "Copy Expression" or "Copy Value". In case the variable is an object and not just a basic type, there's a + sign to expand and explore the object. It there a way to copy all that into the clipboard? ...

MSBuild 2010 - how to publish web app to a specific location (nant)?

I'm trying to get MSBuild 2010 to publish a web app to a specific location. I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes. For example: if I tell it to publish to C:\dev\build\Output\Debug then the actual web files end up at C:\dev\build\Output\Debug\...

C# Mode in Visual Studio 2010 Professional

While configuring my just installed Visual Studio 2010 Professional, I mistakenly opted for Visual Basic mode. I want to correct my selection and change it to C#. How can I do that? ...

VS 2010: Class diagram with xml summary description?

Hello, using Visual Studio 2010 Ultimate I created a class diagram of a C# / WPF project. The project is well documented, meaning ever property has a xml summary. Now in the class diagram one can hover over a property and read this summary - fine. But what about printing? Visual Studio just prints the diagram! Is there any way to let Vi...

Can VS2010 help me find memory leaks?

I'm going through the pain right now of finding memory leaks in my application using WinDbg. Luckily, I've found a few good articles that give a very good step-by-step process of how to do it. Still, it is a fairly painful process. Does VS2010 have any built in features that can ease the burden of finding a memory leak in a Silverlight a...

How can I change the font and color settings for js files in Visual Studio 2010?

I don't see where in the fonts and colors settings javascript settings can be changed. ...

VS2010: "Select Resource" dialog & resx location

Got two issues with the VS2010 / VS2008 select resource dialog - the one that appears when you want to add an image to a button in a WinForms app for example. Give me my files back! It only seems to see the default project resources file (Properties\Resources.resx), and resx files in project root (say MyProject\famfamfam.resx). We ha...

Missing Business Intelligence Project type in Visual Studio 2010

When I use visual studio 2008 and do a new project I can select the type of project as Business Intelligence project. From here I can select a report server project. I noticed that with visual studio 2010, this does not exist any longer. Tried doing some googling about it and got this: http://social.msdn.microsoft.com/Forums/en-CA/vsr...

Best Practices for Working with Multiple Monitors in Visual Studio 2010

Now that Visual Studio 2010 has support for multiple monitors, I am curious how other people have their environments arranged. I have yet to come up with an arrangement that I am really satisfied with. The current best I have come up with for my 2 monitor system is to have all code windows detached. Then, on my primary monitor, I am abl...

How can I get the Visual Studio 2010 converstion wizard to come back up?

When I first opened my website project with Visual Studio 2010 the conversion wizard came up and I said that I didn't want to convert the project. Now I'm ready to convert the project, but I can't find a shortcut or a way to get it back? I tried to remove the suo file, and that didn't do it. If I go into the project properties I can s...

Missing Test Settings template in VS2010 Ultimate

I'm attempting to add a Test Settings file to my Unit Tests project in VS2010. All websites seem to simply say "Go to Add New Item > Installed Templates > Test Settings". However, I don't have Test Settings as an option in my Installed Templates (nor does searching for them online turn up any results). Can someone point me in the righ...

How to open a file on relative path using T4?

I'm trying to run a T4 template that opens a XML file and uses it contents to generate a code artifact. However, I'm getting the an error message when I try to run a T4 template similar to the one below <#@ template debug="false" hostspecific="false" language="C#" #> <#@ assembly name="System.Xml.dll" #> <#@ assembly name="System.Xml.Li...

Object does not match target type in DesignData

I'm throwing this out in case someone has encountered this before. When creating DesignData for use within the WPF designer, I get one of two errors: Object does not match target type. at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) (SNIP) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjec...

Managing web.config for teams in VS2010 & TFS

With VS2010's mandate that web.config be included in the project, how do we allow everyone to keep their own custom config file without getting into source control problems? Previously, we would simply leave web.config out of our project, allowing everyone to keep their own local version of web.config on their machine. We moved to VS201...

Can a CWinApp be placed in a DLL?

I'm updating some legacy apps to Visual Studio 10 and am in linker hell. All of these DLLs derive classes from CWinApp and use AfxGetApp() to get access to the object. When I link the DLLs I get unresolved externals that look like global static objects that would get pulled in by a normal app's main(): Shell.lib(SHELL.obj) : error LNK20...

Editing source from a Visual Studio 2008 project in Visual Studio 2010

I work in a large team, and not everybody has upgraded from VS 2008 to VS 2010, though I have. I have a maintenance bug in a VS 2008 project, and have been told that I cannot upgrade the project file. Is there a way for me to make the changes I need to make within VS10 without upgrading the project (including compiling, using the debugge...