visual-studio-2010

VS2010 add-in to show target framework in solution explorer

Is there a VS2010 add-in that shows a project's target framework version in the Solution Explorer window? ...

Is there a support tool to make the code review task more interesting?

I'm so bored with the way I have to open my colleague's changesets and right click on a specific file and select "compare with previous/latest version" - only here will I reach the compare dialog ! I want this dialog as a side-by-side pane when viewing the changeset so that I can see quickly what changes my colleagues have made to the f...

.Net4\vs2010 versions of c# snippets

Does anyone know if there are 'extra' .Net4\vs2010 versions of c# snippets like there was for vs05 version (http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx or as mentioned here)? I know I can import the 05 versions, or create my own, but wonder if there updated ones that use the newer .Net 4 (or I guess 3.x) features. ...

How can MVVM Light be used in a WPF User Control Library project?

Specifically, I would like to know how the view model is to be bound to a user control. The examples I have been able to find so far are all WPF Application or WPF Browser Application projects. Even the templates in tool kit are for WPF Application or WPF Browser Application projects. I am using Visual Studio 2010. ...

Assembly resources FileNotFoundException in project upgraded to VS 2010 framework 4.0

I have upgraded a C# WinForms application from Visual C# 2008 (framework 3.5) to 2010 (framework 4.0) and I'm getting runtime errors. The application loads assemblies dynamically at runtime using Assembly.Load(filename). It is designed this way because depending on the users configuration it should load different implementations of the ...

Vs 2010 Sql DB Project fails in x64

Tried to create a SQL 2005 DB project. In Vs, New Project >> Sql Server 2005 Database project. I right click the project in solution explorer. I get this error message: An error occurred trying to load the project properties window. Close the window and try again. Cannot evaluate the item metadata "%(FullPath)". The item metadata "%(Fu...

Local Machine wide Visual Studio RootSuffix registration.

Hi All, I have read so many articles about integration and yet i did not found solution for my problem. I want to integrate my VS Package to custom RootSuffix, but this integration should be common for whole machine and not only for current user. Is it possible at all ? Beforehand thanks for your help. ...

VS2010 doesn't always release dlls before building

I have a periodically occurring problem when building with Visual Studio 2010. Sometimes it refuses to build with an error message like: Error 102 Unable to copy file "xxxxx\Debug\Services.dll" to "bin\Debug\Services.dll". The process cannot access the file 'bin\Debug\Services.dll' because it is being used by another process. The o...

Are the tests that MsTest generates actual unit tests?

Visual Studio 2010 generated a bunch of unit tests for me which seems to be handy, but I question whether they are actual unit tests. For example, it generated a test it called SaveTest which executes the following code: User user = new User(); //I have to create a user user.Save(); //This saves the user to the database. //Assertions ...

ASP.NET 4 VS2010 Web Application Deployment

I must be missing something quite basic here... Trying to release my site to a test server... click on the publish option... and off it goes. The site is 'successfully' to the webserver... the odd thing is none of the code behind files have been copied. Should they be there? Why aren't they? What have I done wrong!?? I've looked for ...

Publish Error- VS 2010- Configuration File Changed?

I am publishing a web page to a local server through VS2010- I haven't published anything new in a couple days and I haven't made any config changes(I think). I have been following my same process for 4-5 months. Publish shows as succeeded, and my hosted directory on the local machine is showing my changes(I can also debug in VS w/o iss...

Visual Studio Option hangs

Have anyone experience a problem when you click OK button in Visual Studio 2010, VS would hangs? VS used 100% of cpu power of one of cores. Event I didn't change any setting and click OK, it would still run into this issue. ...

Difference between properties of an object showing in debugger vs proprties in Intellisense

When I inspect an object in the debugger, I see a lot more properties in the debugger than what is available in Intellisense or code. For example, the Page object in ASP.NET in the debugger shows a property RelativeFilePath which has a value. But when I try to use it in code, it doesn't exist. Why is that? I looked up the property Rel...

Code changes not being included when compiling in Visual C# Express 2010

At seemingly random times, whenever I load up VC# Express for the day and start working, any changes I make to my code don't get reflected in my debug runs. It's as if VC just refuses to compile the code and just runs the old already-compiled version. Deleting the "bin" folder in the project directory doesn't help, as then VC just compla...

Can't get a referenced project to show up in my 'imports' statement

I have a vb.net solution is VS 2010. I have two projects in this solution, one of which is a class library that we've used for some time. My desire is to reference THAT project from the other one. I opened the options of project 1, and added a reference to the other class library project, and all seems well. Solution builds just fine...

VS2010 Solutions Always Opening with VS2008?

I just installed VS2010 via the web installer on a Win7 machine that already had 2008. Everytime I open a 2010 sln file it launches 2008 and errors saying the solution was created with a newer version. I can do an "Open With..." and choose 2010 or the 2010 version selector, but the option to "Always Open With" is grayed out. I went in...

What is the difference between a "Win32 Project", "CLR Empty Project", and "Empty Project" templates in Visual Studio?

I've just recently started working with Visual Studio this summer, primarily on CUDA and OpenCV related projects. Prior to this, I had been doing my development on Linux for CUDA using Makefiles and the common.mk makefile from NVIDIA. So my question is as follows: I've not been able to figure out for the life of me what the difference...

MbUnit's row attribute in Visual Studio 2010?

While reading an Asp.Net MVC code sample that used MbUnit as its testing framework, I saw that it was possible to run a single test against multiple input possibilities by using a Row attribute, like so: [Test] [Row("test@test_test.com")] [Row("sdfdf dsfsdf")] [Row("[email protected]")] public void Invalid_Emails_Should_Return_False(string inv...

Visual Studio 2010 unresponsive on startup

When I launch Visual Studio 2010, the inner work area screen always goes black or white and the title bar says VS is not responding. It does this for about 20 seconds before returning to normal operation. Does anyone else experience this, and how can it be fixed? Windows Vista32 with 2GB RAM, ATI Radeon 4850 ...

Upstream/downstream callers

In VS2010's code analysis, there is a concept of upstream/downstream callers. What exactly is an up/downstream caller? Thanks ...