Wednesday, November 16, 2011

Microsoft.Silverlight.CSharp.targets was not found

Scenario:
Opened an old silverlight project and got following error.

The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <import> declaration is correct, and that the file exists on disk.

Solution:
1. Download Silverlight4_Tools from MS Web site and install it

2. Close VS 2010 and start again to load the project

2 comments:

Anonymous,  November 17, 2011 at 10:16 PM  

I downloaded the package and still have the problem.

Sandeep K Nahta November 17, 2011 at 10:22 PM  

Try http://snahta.blogspot.com/2010/06/unable-to-open-silverlight-4-projects.html