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.

6,789 thoughts on “VB.NET and project imports

  1. Между прочим, если вас интересует Будущее чемпионов: детские футбольные академии, загляните сюда.

    Смотрите сами:

    https://familytottenham.ru

  2. Шаблоны юридических документов — удобное решение для быстрого и грамотного оформления договоров, заявлений и иных правовых бумаг. Переходите по запросу бланки правовых документов. Готовые формы разработаны с учетом законодательства и помогают избежать ошибок. Скачивайте, адаптируйте под свою ситуацию и экономьте время на подготовке документов без лишних затрат.

  3. Из каких этапов состоит комплексное seo продвижение сайта — расскажите подробнее.

  4. bayar bayar bayar bayar bayar bayarbayar bayar bayar bayar bayar bayarbayar bayar bayar bayar bayar bayar bayar bayar bayar bayar bayar bayarbayar bayar
    bayar bayar bayar bayarbayar bayar bayar bayar bayar bayar bayar bayar bayar
    bayar bayar bayarbayar bayar bayar bayar bayar bayarbayar bayar bayar
    bayar bayar bayar bayar bayar bayar bayar bayar bayarbayar bayar
    bayar bayar bayar bayar

  5. Hi there, just became aware of your blog through Google, and found that it is really
    informative. I am gonna watch out for brussels.
    I’ll be grateful if you continue this in future.
    A lot of people will be benefited from your writing.
    Cheers!

  6. Hi to every single one, it’s really a nice for me to pay
    a visit this site, it consists of useful Information.

  7. Hmm is anyone else having problems with the images on this blog loading?
    I’m trying to find out if its a problem on my end or
    if it’s the blog. Any suggestions would be greatly appreciated.

  8. Между прочим, если вас интересует История и реставрация архитектурных стилей, посмотрите сюда.

    Вот, делюсь ссылкой:

    https://news-houses.ru

  9. Совместное банкротство супругов — законный способ списать долги семьи через одну процедуру. Переходите по запросу банкротство и детские пособия. Поможем подготовить документы, учесть общее имущество, защитить ваши интересы в суде и пройти процедуру с минимальными рисками. Консультация юриста — первый шаг к финансовому освобождению.

  10. Продвижение сайта в Яндексе — чем оно принципиально отличается от продвижения в Google?

  11. Поделитесь опытом: что чаще всего разочаровывает в работе с маркетинговое агентство?

  12. Сколько времени занимает Продвижение сайтов в яндекс до топ-10 по конкурентным запросам?

  13. Букмекерские конторы: отзывы ставки на спорт новости спорта прогнозы и где смотреть теннис онлайн читайте подробнее про ставки и букмекеров на bkradar.com

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>