Simple way to add "using blah" and references?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have previously coded a lot of Java using the Eclipse environment and
recently I have started a C# project in VS.NET 2003.

1) In Eclipse when some class missed the proper "import" statment one could
select "Organize Imports" (available using a special key combination) and the
proper import lines where added. Is there a similar easy way to add the
proper "using Blah" lines to a C# file?

2) Even when I have added the proper "using Blah" line it sometimes also
wants me to add a reference to some assembly. If you download a third-party
library you have to reference its .JAR files of course, but with C# I have to
add references very often even for trivial things like XML parsing etc. Is
there anyway I can get around this adding problem and somehow get it done
automatically?


regards,
martin
 
The default framework libraries (System.dll) references are included to
the CSC compiler, which have been mentioned in a csc.rsp file. So if
you need to include any other library you can go head and include it
over here. But if you include over here it would be used while
compiling any .cs files. You can find the csc.rsp
(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727).

The csc compiler is really smart, even if you include libraries that
aren't required for the .cs file, the Assembly ref table wont have a
reference to it.
 
Back
Top