title: Silverlight 4: Resolving Microsoft.Silverlight.CSharp.targets was not found?
body: <p>I've been upgrading some Silverlight 3 apps to Silverlight 4 in Visual Studio 2010. My Silverlight 3 apps open fine in Visual Studio, but SL4 apps don't, with the following error:</p>
  
  <p><code>C:\Path\To\MyProject.csproj : error  : Unable to read the project file 'XNTVOD.AdminClient.csproj'. 
  C:\Path\To\MyProject.csproj(593,3): 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 &lt;Import&gt; declaration is correct, and that the file exists on disk.
  </code></p>
  
  <p>I had a problem with older VS Silverlight components and recently uninstalled most of the SL components, and right now in Add/Remove programs I have:</p>
  
  <ol>
  <li>Microsoft Silverlight</li>
  <li>Microsoft Silverlight 3 SDK</li>
  <li>Microsoft Silverlight 4 Toolkit April 2010</li>
  </ol>
  
  <p>The <code>&lt;import&gt;</code> declaration looks like this for the SL4 project:</p>
  
  <p><code>&lt;Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" /&gt;</code></p>
  
  <p>That folder, <code>C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0</code> only has two files in it:</p>
  
  <p><code>Microsoft.Ria.Client.targets</code></p>
  
  <p><code>Microsoft.Ria.Client.VisualStudio.targets</code></p>
  
  <p>What Silverlight development component am I missing in particular? I see a bunch of different options, from Silverlight 4 SDK Beta to VS Tools for Silverlight 4 and a bunch of others. I don't want to install stuff that will get me right back to the situation I had before this one with outdated components.</p>