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,786 thoughts on “VB.NET and project imports

  1. Minedrop — захватывающий слот в стиле
    Minecraft! Копайте блоки, собирайте ресурсы и выигрывайте крупные призы.

    Уникальная механика падающих символов создаёт цепочки побед казик с майнкрафтом, eprofile.ogapatapata.com,.
    Погрузитесь в пиксельный мир
    приключений и богатств!

  2. Особенно понравился материал про Последние тренды вратарского мастерства и обороны.

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

    https://armyliverpool.ru

  3. Монтаж в сезон заказывали заранее — очередь на лето расписана. Рекомендую бронировать монтажную бригаду не позднее апреля если хотите крышу в июне-июле. металлочерепица от 680 руб Красноярск

  4. Покупал за год до монтажа — хранил в гараже. Качество не пострадало покрытие не повредилось. Листы ровные без деформаций. Хранение прошло без проблем при соблюдении условий. металлочерепица RAL 7024 графит Красноярск

  5. Hi, I do think this is an excellent web site. I stumbledupon it ;) I may
    come back once again since i have saved as a favorite it.
    Money and freedom is the best way to change, may you be rich and continue to help
    others.

  6. Влияет ли возраст домена на продвижение молодых сайтов?

  7. Взял металлочерепицу с имитацией деревянной фактуры — выбрал для деревянного дома. Сочетается отлично соседи долго думали что у меня деревянная кровля. По характеристикам — 0.5 мм всё надёжно. купить металлочерепицу Красноярск

  8. Для тех, кто ищет информацию по теме “Фанатская культура и спортивные перформансы”, нашел много полезного.

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

    https://fancska.ru

  9. I’m extremely impressed with your writing skills and also
    with the layout on your blog. Is this a paid theme or did you modify it yourself?

    Either way keep up the nice quality writing,
    it’s rare to see a nice blog like this one these days.

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>