导入的项目"C:\ Microsoft.CSharp.targets"没找到 [英] The imported project "C:\Microsoft.CSharp.targets" was not found

查看:343
本文介绍了导入的项目"C:\ Microsoft.CSharp.targets"没找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天在尝试在Visual Studio 2005中打开Visual Studio 2008 项目时遇到此错误:

I got this error today when trying to open a Visual Studio 2008 project in Visual Studio 2005:

找不到导入的项目"C:\ Microsoft.CSharp.targets".

The imported project "C:\Microsoft.CSharp.targets" was not found.

推荐答案

在记事本(或notepad ++)中打开csproj文件 查找行:

Open your csproj file in notepad (or notepad++) Find the line:

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

并将其更改为

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

这篇关于导入的项目"C:\ Microsoft.CSharp.targets"没找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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