Skip to content

[FIX] “Microsoft.Silverlight.Csharp.Targets” was not found error in Visual Studio

November 22, 2012

Try the following if you get this error in Visual Studio:

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.

1. uninstall all versions of Silverlight

Add/Remove Programs–>Search for Silverlight–>uninstall

2. Install the Silverlight 4 SDK

3. Go back to Visual Studio and reload the project.

That resolved the issue for me.

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: