visual-studio-2010

Why are the Visual Studio 2010 icons blurry when compared to the Visual Studio 2005 icons?

http://imgur.com/5Grp6 That image shows what I'm talking about. Visual Studio 2010 on the left, Visual Studio 2005 on the right. If you ignore the jpeg compression artifacts you can tell that the left icons are much blurrier than the right icons. Is there some way to turn off this anti-aliasing? ...

javascript indentation in vs2010

hallo all i was wondering how i can change the indentation settings of vs2010 so instead of it doing this: function test () { } it will do this: function test () { } its bugging me out! thank you ...

Debugging with Visual Studio 2010 and VB.NET: Immediate fails due to protection level

It happens quite frequently, more times per day, that with Visual Studio 2010, during the debugging, when I used Immediate commands like: ? NamedVariable I receive the following error: 'NamedVariable' is not declared. It may be inaccessible due to its protection level. In this case also other debug features seems gone, bu...

Convert project from 2008 to 2010 from shell

Is there any way to convert Visual Studio project from 2008 to 2010 from shell? I need to make it during continious integration process. ...

Upgrading Visual Studio 2010 Professional to Premium, just install over?

I just discovered that our MSDN licensing covers Premium, and I installed Professional. Can I just install Premium over Professional, or do I have to uninstall and reinstall everything? I'd rather not if installing on top of Professional is safe since I have addins and configuration already set up. ...

Getting the PublicKeyToken of .Net assemblies

What is the simplest way to find the Public Key Token of an assembly? The simplest way i can think of would be a simple right-click, get public key, but this fonctionnality isn't there, maybe there is a VS Extension for that. I'm using VS2010, if an extension is available ...

Does XAML design mode support more color than code view?

While working with SilverLight using Visual Studio 10, I found that in design mode XAML allows a wide plethora of colors. For ex. Lime is a valid color in XAML. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"> <GradientStop Color="Yellow" Offset="0" /> <GradientStop Color="Lime" Offset="1" /> While working with code th...

Collapse summary block in visual studio 2010

I have been asking Mr Google about how I shall do if I want my block to be collapse but not the code block. I write my code in C#. ...

How do I change "Specific Version" default value when adding a reference?

When I add a reference to my project, I usually want to use Specific Version = FALSE. This is because our automated build will set the version number. I see the default behavior is to be TRUE. Is there a way to change this? Counting on manually changing that value is error prone (and I end up breaking the build). ...

Why is std::tr1::shared_ptr<>.reset() so expensive?

Profiling some code that heavily uses shared_ptrs, I discovered that reset() was surprisingly expensive. For example: struct Test { int i; Test() { this->i = 0; } Test(int i) { this->i = i; } } ; ... auto t = make_shared<Test>(1); ... t.reset(somePointerToATestObject); Tracing the reset() in th...

Is ILMerge broken when merging assemblies containing Lambdas in VS2010?

I've been trying to use ILMerge to merge assemblies in VS2010 and the resulting primary assembly ends up being unusable. This only seems to occur when the assemblies being merged contain methods with Lambda expressions. Also, it seems to work fine in VS2008. I've outlined my investigation in more detail at http://tinyurl.com/38mz4ef ...

Compiling a DLL in Visual Studio Express for use in a VB Script

Hi, I am looking at converting a DLL written in VB into C++. The dll gets called as part of a login script to perform various functions. My C++ is a bit rusty, and i've only got Visual C++ Express. I can create a DLL ok from C++, but i cant register it using regsvr32. I'm assuming I need to include something in the build options to m...

Visual Studio 2010 related file nesting

In Visual Studio 2008 you could add registry entries so that X.aspx.js or X.aspx.css would show up as nested underneath X.aspx. I would use the following registry file to accomplish this for web sites as well as web apps: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{E24C65DC-73...

WinForm for creating ADO.NET Entities that have relationships with other entities

I am very new to the ADO Entity Framework, and I'm looking for the best practice. Here is the scenario: I have a database with a Person table and an Address table. Person has a foreign key referencing the primary key of Address, an auto-incrementing int. First, I've created an ADO Entity model with VS 2010, and sure enough the relat...

Can TFS2010 be set up locally in order to use Test Manager but still tie into work items, bugs, & source code residing in a remote TFS2008 instance?

We currently use TFS2008 for our source control, bug tracking, and tasks. The TFS2008 server is located in a remote data center. Locally, we have Visual Studio 2010 installed on the developer's machines. Is there a way to install TFS2010 so that we can run Test Manager but still tie into the work items and source code on the remote 2008...

How can I debug my MVC application together with MVC contrib project downloaded from codeplex

I want my MVC application to be step into MVC framework contrib project also when debugging.I have installed visual studio 2010 professional edition. ...

Dependency issue with MSBuild 4.0 when doing DllImport from C# into unmanaged C++ library

Explicitly setting dependency in VS2010 between unmanaged C++ project and C# project is honored in VS2010, but dependency is ignored in MSBuild 4.0. It is impossible to add a reference to unmanaged C++ project from C# project, afaik. How do i ensure correct build order if a solution contains unmanaged and managed projects? ...

Is the remote debugger from VS2010 compatible with VS2008?

Is the remote debugger from VS2010 compatible with VS2008? That is, can connect from visual studio 2008 to a machine running the remote debugger installed by VS 2010 ...

Can't get NUnit to work in Visual Web Develper 2010 express.

First off I was wondering whether it's possible to implement a functionality with Nunit where each time a project is created in Visual Web Developer 2010 I get a dialog asking whether I want to create a unit test project for current application like I saw it happen in the older versions of Visual Web Developer. I've tried just about eve...

Performance testing on .xap files...

Hi All, I want to know that can i use profiler to do performance testing of .xap files. if you have any articles for the same topic please provide it to me. and if there are any other tools available to do this please tell me. in my project we have to check that when we logged into the Silverlight 4 .0 application. the screen takes 5 s...