Silverlight 4:未找到解决 Microsoft.Silverlight.CSharp.targets 的问题? [英] Silverlight 4: Resolving Microsoft.Silverlight.CSharp.targets was not found?

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

问题描述

我一直在 Visual Studio 2010 中将一些 Silverlight 3 应用程序升级到 Silverlight 4.我的 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:PathToMyProject.csproj:错误:无法读取项目文件XNTVOD.AdminClient.csproj".C:PathToMyProject.csproj(593,3):未找到导入的项目C:Program Files (x86)MSBuildMicrosoftSilverlightv4.0Microsoft.Silverlight.CSharp.targets".确认 <Import> 中的路径.声明是正确的,并且该文件存在于磁盘上.

我在使用较旧的 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. 微软 Silverlight
  2. 微软 Silverlight 3 SDK
  3. Microsoft Silverlight 4 工具包,2010 年 4 月

SL4 项目的 声明如下所示:

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

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

那个文件夹,C:Program Files (x86)MSBuildMicrosoftSilverlightv4.0 里面只有两个文件:

That folder, C:Program Files (x86)MSBuildMicrosoftSilverlightv4.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...

Silverlight 4 Visual Studio 工具2010

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

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