我已经完成升级的Silverlight 3级中的应用程序到Silverlight 4的Visual Studio 2010中我的Silverlight 3个应用程序打开的罚款在Visual Studio中,但SL4的应用程序不这样做,并出现以下错误:Silverlight 4:解决Microsoft.Silverlight.CSharp.targets找不到?
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.
我有一个问题与旧VS Silverlight组件和最近卸载大部分的SL部件,而现在在添加/删除程序,我有:
- 微软的Silverlight
- 微软的Silverlight 3 SDK
- 微软的Silverlight 4工具包2010年4月
的<import>
声明如下所示为SL4项目:
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
该文件夹,C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0
只有在这两个文件:
Microsoft.Ria.Client.targets
Microsoft.Ria.Client.VisualStudio.targets
我错过了哪些Silverlight开发组件?我看到了许多不同的选择,从Silverlight 4 SDK Beta到Silverlight 4的VS Tools以及其他一些选项。我不想安装那些能让我回到过去的组件之前的情况。
我有类似的问题。我的错误是告诉我,即使我安装了v4.0,我仍然错过了“\ Silverlight \ v3.0”中的正确文件。我也有适当的Silverlight 4.0文件,但VS似乎没有看到它。 – 2012-10-19 15:31:30