Silverlight 4:找不到Microsoft.Silverlight.CSharp.targets吗? [英] Silverlight 4: Resolving Microsoft.Silverlight.CSharp.targets was not found?

查看:209
本文介绍了Silverlight 4:找不到Microsoft.Silverlight.CSharp.targets吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 2010中将某些Silverlight 3应用程序升级到Silverlight4.我的Silverlight 3应用程序可以在Visual Studio中正常打开,但是SL4应用程序却不能打开,并出现以下错误:

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:

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.

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组件,现在在添加/删除"程序中,我有:

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:

  1. Microsoft Silverlight
  2. Microsoft Silverlight 3 SDK
  3. Microsoft Silverlight 4工具包2010年4月

对于SL4项目,<import>声明看起来像这样:

The <import> declaration looks like this for the SL4 project:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />

该文件夹C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0中只有两个文件:

That folder, C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0 only has two files in it:

Microsoft.Ria.Client.targets

Microsoft.Ria.Client.VisualStudio.targets

我特别缺少哪些Silverlight开发组件?我看到了很多不同的选项,从Silverlight 4 SDK Beta到用于Silverlight 4的VS Tools,还有很多其他选项.我不想安装可以使我回到以前那种过时的组件状态的东西.

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.

推荐答案

看起来这是缺少的部分...

Looks like this is the missing piece...

用于Visual Studio的Silverlight 4工具2010

这篇关于Silverlight 4:找不到Microsoft.Silverlight.CSharp.targets吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆