警告MSB3283:找不到类型库"MSComctlLib"的包装程序集.在构建我的应用程序时 [英] Warning MSB3283: Cannot find wrapper assembly for type library "MSComctlLib". When building my app

查看:583
本文介绍了警告MSB3283:找不到类型库"MSComctlLib"的包装程序集.在构建我的应用程序时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经存在多年的Visual Studio解决方案.该项目是Visual Studio 2010项目,并且我已经能够编译和运行该项目很多年了.此应用程序是关键应用程序,仅需要启动项目并对发现的错误修复进行小的更改.

I have a Visual Studio solution that's been around for years. The project is a Visual Studio 2010 project, and I've been able to compile and run the project for years. This application is a critical application and only rarely do I need to launch the project and make minor changes for bug fixes that have been discovered.

今天,我需要做一些研究.我在旧的Windows XP开发者机器上打开了该项目,这是我多年来开发的机器.我非常有信心这台机器上的任何东西都没有改变,尽管IT推出我可能不知道的Windows Update的可能性很小.

Today, I needed to do a bit of research. I opened the project on my old Windows XP dev box which is the same machine that I've developed on for years. I'm quite confident that nothing on this machine has changed, though there is a small chance that IT has pushed a Windows Update that I may not be aware of.

我打开了项目,然后立即点击工具栏上的运行"按钮.该应用程序将不再编译.它到达解决方案中的最后一个项目(共7个),并提供以下输出:

I opened my Project, and immediately hit the Run button on the toolbar. The app will no longer compile. It gets to the last project (of 7) in the solution and gives me the following output:

------ Build started: Project: QSApplication, Configuration: Debug Any CPU ------
c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1558,9): warning MSB3283: Cannot find wrapper assembly for type library "MSComctlLib".
========== Build: 7 succeeded or up-to-date, 1 failed, 0 skipped ==========

我很困惑.我没有更改任何项目或构建设置,并且我怀疑这台计算机上的任何重大更改都没有.我找不到任何有用的查询此错误的信息,所以我不知道发生了什么.

I'm stumped. I haven't changed any project or build settings and I am doubtful that anything major has changed on this machine. I can't find anything useful querying this error so I have no clue what's going on.

有人看到过此消息或知道修复程序吗?

Has anyone seen this or know of a fix?

推荐答案

尽管IT部门推出Windows Update的可能性很小

though there is a small chance that IT has pushed a Windows Update

不小.今年有两个安全更新对mscomctl进行了修补.同样重要的是,没有IT部门会跳过它们. MS12-027 已于4月发布,

It isn't small. There were two security updates that patched mscomctl this year. Critical ones too, no IT department would skip them. MS12-027 was released in April, MS12-060 was released in August. Particularly the April update is significant, it changed the guids of the COM server. Which means that the interop library (aka wrapper assembly) is no longer valid.

删除并重新添加要修复的依赖项.

Remove and re-add the dependency to fix.

请注意,跳过这些更新的客户可能会遇到麻烦.您确实应该考虑摆脱依赖关系. mscomctl中没有任何内容没有有效地包装在.NET框架中,所有VB6控件都有很好的替代品.

Beware you might have some trouble with customers that skip these updates. You really should consider getting rid of the dependency. There's nothing in mscomctl that isn't ably wrapped in the .NET framework, all VB6 controls have good replacements.

这篇关于警告MSB3283:找不到类型库"MSComctlLib"的包装程序集.在构建我的应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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