Home > Net >  Class library reference question, caused the namespace, seeks to solve
Class library reference question, caused the namespace, seeks to solve

Time:10-19

A solution with multiple libraries, I each class library that named
Project. The Product
Here are two files
Cs
model.The namespace Project. The Product. The Model
{
Pubic submodel
{
//MOdel
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Cs
subs.The namespace Project. The Product
{
Pubic subs
{
//method
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Project. The User
Below there are two files
Cs
model.The namespace Project. The User. The Model
{
Pubic submodel
{
//MOdel
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Cs
subs.The namespace Project. The User
{
Pubic subs
{
//method
}
}
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Site project can direct reference conflict of the two won't happen

But I'm in the Project. The Project quoted in the Product. The User is unable to use the Project. The User
Then I put the Project. The namespace in the User name to the namespace Project_User. The Model with the namespace can be used after Project_User,

I want to consult the namespace reference will be conflict?
Why refer to the project and it cannot be used,

The web project and can be used normally

CodePudding user response:

Reference, not you manually change, even change the right to change the assembly attributes in the assembly name,

CodePudding user response:

It should not be this problem, other places may be wrong

CodePudding user response:

Still can't solve

CodePudding user response:

reference 1st floor exception92 response:
reference, not you manually change, even change the right to change the assembly attributes in the assembly name,


That I do not reference what reason can tell
  •  Tags:  
  • C#
  • Related