all groups > visual studio .net ide > june 2007 >
You're in the

visual studio .net ide

group:

global 'using' statements


global 'using' statements gover
6/5/2007 7:44:03 PM
visual studio .net ide: hello,
I know I saw this somewher befor, but cant find it....
how/where in a vs2005 classlibrary project do i specify that the
system.data.sqlclient namespace should be imported into every class without
me having to put a 'using' in each .cs file.
Re: global 'using' statements PlatinumBay
6/5/2007 11:07:46 PM
gover,

If you go into the project properties page (My Project), there is a tab
called References. You should be able to do it there in the Imported
Namespaces section.

Hope this helps,


Steve

[quoted text, click to view]

Re: global 'using' statements John Saunders [MVP]
6/6/2007 1:03:58 PM
[quoted text, click to view]

I think that may only be in VB.NET, not in C#. I don't think there's a way
to do that in C# (short of using ReSharper).
--
John Saunders [MVP]

AddThis Social Bookmark Button