VB.NET and project imports

Much to my displeasure, I’ve recently inherited an ASP.NET 1.1 website. After a bit of a wrestle they eventually handed over the source code (Why are .NET developers so precious over their code?). Unfortunately they didn’t hand over the Visual Studio project or solution files as well.

Fair enough, I can easily create a new solution and import all the code…no problem. Except there were problems, 104 of them. If you’ve used Visual Studio before you’re likely to know what that means. It means: a shit load of errors, except I’m only going to show you 104 of them.

The kind of stuff I was getting was:

Type 'Control' is not defined.

…and there were no error messages for missing imports. I scratched my head for ages until I thought of the notion of “automatic imports”. What if, these guys have somehow specified a set of imports that get appended automatically to each file…which I haven’t defined?

Turns out, you friggin can do exactly that. In Visual Studio 2003 it is: Right click on project > properties > project properties > imports.

Who the hell thought of that? Surely it is a completely ludicrous idea! It means that if the code gets separated from the project (which is exactly what happened) it won’t work correctly. Not only that, but how the hell am I supposed to know if MyClassName belongs to com.companyX.package or com.companyY.package???

So I’m just totally guessing at the moment, and I’m down to 18 errors. Man I hope it eventually runs.

4,524 thoughts on “VB.NET and project imports

  1. Статьи Психологов. Психология Сайт.
    Как Перестать Бояться Конфликтов.

    Записаться К Психологу.
    Онлайн Психологическая Помощь.
    Психологи Онлайн. Найти Психолога Онлайн.

    Как Перестать Бояться Конфликтов.
    ✔️ Психосоматика, тревожность, выгорание.
    ✔️ Профессиональное выгорание.
    ✔️Любовная зависимость расстройство пищевого поведения.
    ✔️ Головокружение? ✔️Выбор и
    достижение цели

  2. Самые актуальный новости актуальные новости — свежие события аналитика и репортажи. Политика экономика технологии и общество. Будьте в курсе последних новостей и ключевых событий каждый день.

  3. Самые актуальный новости актуальные новости — свежие события аналитика и репортажи. Политика экономика технологии и общество. Будьте в курсе последних новостей и ключевых событий каждый день.

  4. Hi to every one, since I am in fact eager of reading this web
    site’s post to be updated daily. It contains nice material.

  5. Howdy this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have
    to manually code with HTML. I’m starting a blog soon but have no coding expertise
    so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  6. Do you mind if I quote a couple of your posts as long as I provide credit
    and sources back to your webpage? My website is in the exact same niche as yours and
    my visitors would definitely benefit from some of the information you present here.
    Please let me know if this ok with you. Many thanks!

  7. Специалисты компании выполнят изготовление этикеток любого формата и сложности: тканых жаккардовых, деревянных, металлических, кожаных и проч.
    Чтобы бирки для одежды не утратили своего первоначального вида и были износостойкими, мы используем только качественные материалы.

  8. кухни на заказ от производителя кухни на заказ от производителя .

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>