Csharp的类型(...),已被转发... [英] Csharp the type (...), has been forwarted...

查看:85
本文介绍了Csharp的类型(...),已被转发...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Salut salut! .. alors j'ai unpetitproblèmequeje n'arrivepasàrésoudresuvous pouvez m'aidez ce serais sympa ..

je suis en train de faire un jeu avec le moteur unit3d que tous le monde connaissent et je program en csharp avec Visualstudio..donc je fais uneconnexionàMySQLavec studio visuel pour mon jeux ..tous allais bien jusqu'a
ce que quand je rentre dans l'unitéjetrouve une erreur

""the type" 'system.data.Common.DbConnection'已被转发到未引用的程序集。考虑添加对程序集'System.Data,version 4.0.0.0 ..."""

""the type 'system.data.Common.DbConnection' has been forwarded to an assembly that is not referenced.Consider adding a reference to assembly 'System.Data, version 4.0.0.0..."""

je ne comprends pas bien!

je ne comprends pas bien!

Merci d'avance !!

推荐答案

这是英语论坛。请用英语发布您的问题或在适合您所在地区的论坛中发帖。

This is the English forums. Please post your question in English or post in the forums appropriate for your locale.

根据您的部分消息,它看起来像是旧程序集中的类型被移动到新的程序集。在旧程序集中有一个类型转发属性,因此CLR转到新程序集以加载它。但是,您的代码未引用新程序集
,因此它失败。您需要在受影响的代码中添加对System.Data的引用。

Based upon your partial message it looks like a type in an old assembly was moved to a new assembly. In the old assembly there is a type forwarding attribute so the CLR goes to the new assembly to load it. However your code isn't referencing the new assembly and therefore it fails. You need to add a reference to System.Data in the impacted code.


这篇关于Csharp的类型(...),已被转发...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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