Posts

Showing posts from June, 2014

Test project version constraint

Test projects in Visual Studio 2010 must target .NET Framework 4.0. See this post for details. This issue may have been fixed in SP1.

Resolving metadata file not found issue

I made a copy of an existing solution and put it in a different folder. When I tried to run it, I got the following error. Meta file ‘C:\MyProject\Some.dll’ could not be found. In this case, Some.dll is produced by one of several projects in the solution. I tried rebuilding the solution but that didn’t help. It turns out some settings appeared not carried over from the original solution. Here’s how to fix it. In Solution Explorer, right click the solution and select Properties. In the Property Pages dialog, go to Configuration Properties | Configuration. You’ll see the Build checkbox for the offending project is not checked. Check it, and click OK. Rebuild the solution.

Changing default language in Visual Studio

In Visual Studio 2010 Professional (as well as other versions), when you set the initial profile to Web Development, the default language is set to VB for certain project types, such as Test Project. There is no obvious way to specify the programming language as you create a new project. You are not able to change the default setting at the usual places such as Tools | Options… or the project’s properties. The most common solution, as suggested in various forums including the quasi-official Visual C# Forums , is to go to Tools | Import and Export Settings… and select Reset All Settings. More elaborate schemes entail manually updating registry keys. There are many usability issues here. First of all, Import and Export Settings… is hardly the first place one would look for default language settings. Most likely you will have to search the Internet for an answer. Even if you are lucky to guess it right, most people would be taken aback by Resetting All Settings. What settings it will