Archive for Visual Studio 2012

How to import a setting to Visual Studio?

Download the setting file. (.vssettings extension)

For example:

Then go Tools/Import Export Settings/Import Selected Environment Settings

and choose the file you downloaded above. Thats all…

Which font should I use for coding?

This guy compiled great fonts for coding in this site.

I use “DEJA VU SANS MONO” in my Visual Studio environment.

You can download this font from here:

also “proggy” seems nice too.

You can download proggy from here:

NOTE: Be sure you download true type fonts (ttf). Other fonts do not work in Visual Studio. And don’t forget to restart visual studio after changing editor font. Otherwise it wont work.

Visual Studio 2012 Error: “no exports were found that match the constraint contract name” How to solve?

This morning I faced a problem while opening my Visual Studio solution and when I tried to run it. It said “no exports were found that match the constraint contract name”

Solution is:

This issue can be resolved by deleting or clearing all the folders and files from %AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

This actually clears visual studio component model cache.

In windows 7 machines, path is different. When you type %appdata% n RUN command it opens the folder C:\Users\\AppData\Roaming

click ‘up’ button to navigate to parent folder and select the folder ‘Local’

final path : C:\Users\\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

How to make item template with Visual Studio 2012?

When you create a file, if you want to insert automatically date, time and whatever you want to see every time on the header file, you have to follow this. if you want to add a time inserted automatically, you have to insert as $time$ as stated below. There are lots of parameters in below link. Happy programming…

IMPORTANT NOTE: Do not forget to change

  1. Set the ReplaceParameters attribute of the element to true!!!!! Otherwise it wont work…