VS2005未能加载文件或程序集Microsoft.Build.Engine

时间: 2008-06-01 / 分类: 学习心得 / 浏览次数: 5,290 / 0个评论 发表评论

文中提到的软件下载:

dotnetfx cleanup_tool:作者博客(英文) 我的SkyDrive

dotnetfx 2.0:微软官方(简中) 我的SkyDrive

—————–正文—————-

使用VS2005的时候遇到了一个问题,打开ASP.NET项目的时候就会出现下面的错误提示:

无法读取项目文件“*****.csproj”,未能加载文件或程序集“Microsoft.Build.Engine,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或者它的某一个依赖项.系统找不到指定的文件。

刚开始以为是VS2005的问题,于是经过反复重装都没有解决问题,最后只得求助于百度和google,结果用中文搜索的话只在CSDN论坛找到了一篇帖子,而且回复都模棱两可,除了重装系统也没有提出什么可行的解决方案。于是我用英文搜索了一下,问题马上就解决了。

英文的描述是这样的:

Unable to read the project file ‘*****.vbproj’. Could not load file or assembly’Microsoft.Build.Engine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The module was expected to contain an assembly manifest.

作者还罗嗦了一大通,原话是这么写的:

My web application contains three projects named ‘DataAccess’,’BusinessLogic’ and ‘Common’ containing their relevant classes. When I attempt to load project in VS2005 using solution file only my website open but the included projects are not loaded and above errors are displayed.

I am in deep trouble because of this as I have to finish this project within tight deadlines. The project code was working fine before I formatted my PC but on now after i completed all the installation it is troubling me.

Can anyone help me figure out what is the real problem!!! My assumption is that there is some problem with VS2005 Microsoft.Build.Engine as I am even unable to create new VB.net projects. Moreover, I even re-installed my VS2005 in hope of getting the error removed but all in vain.. :((

Your early replies, link to answers or sites, suggestion will be highly appreciated.
呵呵,我贴出这段话来主要是为了学习一下英文的求助表达技巧,以后到了国外网站求助不至于用汉语吧?虽然说汉语使用的人最多。注意了,下面开始才是正点内容:

RE:
Based on my experience, probably the NET Framework 2.0 is corrupt and the corrupt file/files remain after you reinstall VS.NET 2005. Hence, please try to uninstall .NET Framework 2.0 and then install .NET Framework 2.0 again.

You can download the “Cleanup_tool” from Aaron’s blog to automatically remove the Framework.

Automated cleanup tool to remove the .NET Framework 1.0, 1.1, 2.0, 3.0 and 3.5
http://blogs.msdn.com/astebner/archive/2006/05/30/611355.aspx

Alternately, you can manually do cleanup steps by following another article.

How to manually cleanup a failed .NET Framework 2.0 install
http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx

呵呵,就是酱紫了,到指定的链接或者我提供的下载地址下载那个“Cleanup_tool”,清理.NET Framework完毕,重启系统,重新安装,搞定了。当然了如果你喜欢自己清理也可以,只要你不怕繁琐的注册表清理工作,第二个链接就是手动方式。如果你英文水平有限,可以找我帮忙。

对了,上面那篇帖子的地址是:http://forums.asp.net/t/1177531.aspx

历史上的今天

2015年:Windows Live Writer要发布开源新版本了!(87条评论)

2014年:快乐星期天312期:美女秀(79)(26条评论)

2012年:有道儿童节(66条评论)

2011年:儿童节快乐!(87条评论)

2009年:3款增强Firefox功能的Wolfram Alpha插件[译文68](0条评论)

2009年:Windows 7 Gmail 提醒器[译文67](0条评论)

2009年:《魔力女战士(Aeon Flux)》(0条评论)

2006年:明天就要动身前往上海了,关注一下上海的天气(0条评论)

2006年:儿童节,送给大家一首歌(0条评论)

发表评论

您的昵称 *

您的邮箱 *

您的网站