Project-level Imports?

  • Thread starter Thread starter Arthur Dent
  • Start date Start date
A

Arthur Dent

Hi all, I am wondering, how do you do project level imports in an ASP.NET 2
project?

In Studio 2003 rightclicking the project and hitting properties, there was a
section to specify imports for the whole project.
This does not seem to exist though in 2005, so now i have to do an Imports
line in every single code file where i want a common import?

That seems kinda hokey. Surely there must be a way still to do global
imports for a project in 2005, no?

Thanks in advance,
- Arthur Dent.
 
specify the import in the web.config. asp.net 2.0 use the aspnet compiler,
which gets its info from the web.config. the import option of vb is a
compiler option, the vs2003 specified on the compile. with asp.net you
should be able to find the compiler option in the compilers sections.

-- bruce (sqlwork.com)
 
Yes, thank you.... looking into the web.config i found where you were
talking about. Sticking them in there worked like a charm.
Even BETTER in fact now that VS2005 actually gives you intellisense on them
in the aspx pages as well as in the .vb pages!! COOL!

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top