Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class library

Status
Not open for further replies.

chrissie1

Programmer
Aug 12, 2002
4,517
BE
Never ever, ever name your class library project "components". Not even for testing.

It has some very weird sideeffects.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
It has some very weird sideeffects.
Anything interesting?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
In response to this I wonder just how many will rename a class library to components just to savour the "weird side effects"?

Sweep
...if it works dont f*** with it
...if its f****ed blame someone else
...if its your fault that its f***ed, say and admit nothing.
 
Yep when you have enums inside your usercontrol it freaks out and say that the enum doesn't belong to the system.componentmodel.icontainer while it doesn't really need to be. Since components is a namespace that already exists it doesn't seem to want to know the other one. But just for the enums all the rest just works fine.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
LOL i think you may be right there sweep

*file > new project*
 
Does this happen when the project name is "Components"? or when the default namespace is "Components"? By default the default namespace = the project name. If it's the namespace that is the problem, then you could still have your project named Components, but you'd have to change the namespace.

Here, everything we do is in the GFC (company name) namespace.
GFC.General
GFC.General.Functions
GFC.General.Forms
GFC.General.Controls
GFC.Data
GFC.Data.[DatabaseName]
GFC.Engines
GFC.WindowsApps.[AppName]

etc. It helps keep all of our stuff out of the frame work library's namespaces.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top