Home > Net >  C # a CS0436 warning type conflicts
C # a CS0436 warning type conflicts

Time:11-28

The following is a warning content:
CS0436 F: \ "WhiteLight, manage, the back - end and back - end \ App_Code \ MySql_JDBC cs" of type "Mysqldatalink" and "back - end, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" type of import "Mysqldatalink" conflict, please use "F: \ WhiteLight \ the manage, the back - end and back - end \ App_Code \ MySql_JDBC cs" defined in the type,

CodePudding user response:

Version may be inconsistent, or caused by inconsistent platform, for example, you should use version 1.1, but the DLL library is 1.0

CodePudding user response:

reference 1st floor DOwnstairs response:
version may be inconsistent, or caused by inconsistent platform, for example, you should use version 1.1, but the DLL library is 1.0


So you say, what is this version version of the platform is used. NET4

CodePudding user response:

So we have to check the inside of the solution "reference", see if there are multiple assemblies containing Mysqldatalink

CodePudding user response:

Also, check whether using the same solution under the other project namespace

Have found, repeat, delete a, keep the latest version

CodePudding user response:

For, there is also a, check whether repeated using the same project in a subfolder

CodePudding user response:

The
reference 3 floor From_TaiWan response:
have to check the inside of the solution "reference", see if there are multiple assemblies containing Mysqldatalink


How do you go to this in the "reference"? Is to read all of the DLL file to find?

CodePudding user response:

reference 4 floor From_TaiWan response:
also, check whether using the same solution under the other project namespace

Have found, repeat, delete a, keep the latest version can


The total project has only a Mysqldatalink project, other subdirectory only this one, is it namespace problems?

CodePudding user response:

reference 5 floor From_TaiWan reply:
yes, there is another, check whether repeated using the same project in a subfolder


This project I only wrote this a database link action class, but namespace is different from the name of the class, instead, a method of action class name is the same as the name of the class

CodePudding user response:

MySql_JDBC. Cs???
You are not a c #? Why want to use the Java connection pool? At least should be an ODBC, actually connected directly is ok!

CodePudding user response:

references 9 f xuzuning response:
MySql_JDBC. Cs???
You are not a c #? Why want to use the Java connection pool? At least should be an ODBC, actually connected directly is ok!


This is just a name,

CodePudding user response:

references 9 f xuzuning response:
MySql_JDBC. Cs???
You are not a c #? Why want to use the Java connection pool? At least should be an ODBC, actually connected directly is ok!


This is a man named class, I am writing these things in this class, but a warning, is to solve the problem of the warning, but don't know where to start,

CodePudding user response:

To solve this problem, I also wondered what the problem,
Namespaces can rename until any one can't repeat, create code, external also does not have any reference, how can appear type conflict, the namespace is absolutely no problem, also has nothing to do with the class name (because how to rename will appear such a warning! , it is proved that the warning has nothing to do with the normal naming conflicts),
I want to sure about this special App_Code folder, there may be some kind of mechanism of automatic create App_Code content copy, etc. Couldn't say for sure why, don't know the ideas right, understand people, from the entrance,
Here I met is the case, pay attention to the warning in the text, (VipUser is a custom class, which to understand the rename too many times, but warned or appear the same)
"Warning CS0436... App_Code \ Entypes cs "of type" VipUser "and"... , Version=1.0.0.0, Culture=neutral, PublicKeyToken=null "type of import VipUser conflict, please use... \ App_Code \ Entypes cs "defined in the type,"
Among them "... , Version=1.0.0.0, Culture=neutral, PublicKeyToken=null "type of import" VipUser "how to produce, what does it mean,

CodePudding user response:

No other name in the App_Code folder the into this warning, so it must be associated with this particular folder, please look at the

CodePudding user response:

The same problem,,,,

CodePudding user response:

13 floor halfway quoted response:
this problem solved, I also wondered what the problem,
Namespaces can rename until any one can't repeat, create code, external also does not have any reference, how can appear type conflict, the namespace is absolutely no problem, also has nothing to do with the class name (because how to rename will appear such a warning! , it is proved that the warning has nothing to do with the normal naming conflicts),
I want to sure about this special App_Code folder, there may be some kind of mechanism of automatic create App_Code content copy, etc. Couldn't say for sure why, don't know the ideas right, understand people, from the entrance,
Here I met is the case, pay attention to the warning in the text, (VipUser is a custom class, which to understand the rename too many times, but warned or appear the same)
"Warning CS0436... App_Code \ Entypes cs "of type" VipUser "and"... , Version=1.0.0.0, Culture=neutral, PublicKeyToken=null "type of import VipUser conflict, please use... \ App_Code \ Entypes cs "defined in the type,"
Among them "... , Version=1.0.0.0, Culture=neutral, PublicKeyToken=null "type of import" VipUser "how to produce, what does it mean,

The same problem, I haven't find a solution, and also a possible solution in the query when you have time, but still haven't found,
To provide additional information, if there is help for problem solving (in your VipUser custom class as a sample for description) :
1, static class VipUser GetS under App_Code. Cs (GetS. Another under the cs and cs file with the same name class: the class GetS) file defined in the class GetS reference VipUser, suggests that conflict, as shown in the topic
2. However, in the same App_Code in the other class file reference VipUser, but will not appear this hint, is very strange,
3, I tried to take the initiative to repeated references to project itself, but the feeling is not the reason, because after repeated references to project itself, there will be more than 20 such prompt,
  •  Tags:  
  • C#
  • Related