Silverlight 4:找不到Microsoft.Silverlight.CSharp.targets吗?

编程入门 行业动态 更新时间:2024-10-21 16:09:31
本文介绍了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:

  • Microsoft Silverlight
  • Microsoft Silverlight 3 SDK
  • 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吗?

    本文发布于:2023-11-14 19:31:38,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1588335.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:找不到   Silverlight   Microsoft   targets   CSharp

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!