I upgraded some Silverlight 3 applications to Silverlight 4 in Visual Studio 2010. My Silverlight 3 applications work fine in Visual Studio, but there is no following error in SL4 applications:
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 <Import> declaration is correct, and that the file exists on disk.
I had a problem with old VS Silverlight components and recently removed most of the SL components, and now in "Add or Remove Programs" I have:
- Microsoft silverlight
- Microsoft Silverlight 3 SDK
- Microsoft Silverlight 4 Toolkit April 2010
The <import> declaration looks like this for the SL4 project:
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
There are only two files in this folder C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0 :
Microsoft.Ria.Client.targets
Microsoft.Ria.Client.VisualStudio.targets
Which Silverlight development component am I missing in particular? I see many different options: from Silverlight 4 SDK Beta to VS Tools for Silverlight 4 and several others. I do not want to install things that will return me back to the situation that I had before, with outdated components.
visual-studio visual-studio-2010 silverlight
Brandon Aug 28 '10 at 15:46 2010-08-28 15:46
source share