Medium Feed


Monday, February 9, 2015

Visual Studio 2012 - Error message “No exports were found that match the constraint contract name”

Today I faced problem when I try to create a new project or opening an existing project in Visual Studio 2012.

The issue details:

I was getting the below error prompt when I tried to create new project in Visual Studio

Error message “No exports were found that match the constraint contract name...................”

After few hours of research and googling have solved this problem by clearing "ComponentModelCache" under app data.

Visual Studio 2012 users can found that folder from below location:


Here just clear the contents/files inside the "ComponentModelCache" folder and restart the Visual Studio.

The issue solved !!!

Wednesday, February 4, 2015

Override Inline CSS Styles - HTML / CSS trick

Sometimes there is a need to override inline style with css. Good example might be the code where you don’t have an option to remove a markup , where finding a place where inline code is coming from might be a challenge.

Here is how you can override it. There are two elements involved in doing that:

  [style]   addition to existing css code
  !important  line in css code

<div class="FirstDiv" style="background: red;"> The inline styles for this div should make it red. </div>

You can overwrite/change the above in-line css by the below method


background: green !important;