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

  1. Капсульный дом — можно ли его законно зарегистрировать как жилое строение?

  2. Коллеги, статья о «невидимом маркетинге» — SEO, который работает в фоновом режиме, но приносит основные результаты. Автор разбирает, почему SEO важнее контекстной рекламы в долгосрочной перспективе, и приводит аргументы в пользу системного подхода. Есть блок про аналитику и измерение эффективности. Полезно для собственников бизнеса: https://shinastop.ru/stati/seo-kak-fundament-biznesa-pochemu-nevidimyj-marketing-vazhnee-chem-kazhetsja/

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

  4. Serm — что важнее: удаление негатива или вытеснение его позитивным контентом?

  5. I don’t know if it’s just me or if everybody
    else encountering issues with your site. It seems like some of the
    text in your content are running off the screen. Can someone else please comment and let me know if this is happening to them too?

    This might be a issue with my browser because I’ve had this happen previously.
    Kudos

  6. First off I would like to say terrific blog!
    I had a quick question which I’d like to ask if you do not mind.

    I was interested to know how you center yourself and clear your thoughts prior to writing.
    I’ve had a difficult time clearing my mind in getting my ideas
    out there. I do take pleasure in writing but it just seems like the first 10 to 15 minutes are
    usually wasted just trying to figure out how to begin. Any suggestions or hints?
    Cheers!

  7. Отличная статья для тех, кто хочет понять, почему SEO — это не просто набор технических действий, а реальная стратегия роста в конкурентной среде. Автор разбирает ключевые элементы: анализ ключевых слов, оптимизацию контента, техническую базу и внешние факторы. Отдельно радует блок про локальное SEO для регионального бизнеса. Рекомендую: https://bioice-krasnoyarsk.ru/stati/seo-kak-fundament-biznesa-strategii-rosta-v-uslovijah-zhjostkoj-konkurencii/

  8. Hi there this is kinda 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 knowledge so I wanted to get advice from someone with experience.
    Any help would be greatly appreciated!

  9. Хорошая статья о том, почему «цифровой бетон» (техническая база) важнее красивого фасада. Автор объясняет, что SEO — это не про внешний лоск, а про прочность фундамента: скорость загрузки, мобильная адаптация, чистая структура URL. Без этого никакой красивый дизайн не поможет. Тем, кто только начинает продвижение, обязательно к прочтению: https://avto-dom-tumen.ru/stati/seo-kak-fundament-biznesa-pochemu-cifrovoj-beton-vazhnee-krasivogo-fasada/

  10. Особенно понравился материал про Современные технологии частного домостроения и материалы.

    Вот, можете почитать:

    https://newshouses.ru

  11. Для тех, кто ищет информацию по теме “Актуальные события Камчатского края сегодня”, нашел много полезного.

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

    https://41media.ru

  12. Ребята, статья про SEO как «игру в долгую». Автор развенчивает миф о «бесплатном трафике» и объясняет, почему SEO — это владение цифровой недвижимостью, а не аренда. Понравилась метафора про фундамент здания: если строите на песке — первый же апдейт алгоритмов разрушит всё. Есть блок про E-E-A-T и про то, как SEO заставляет бизнес становиться лучше. Рекомендую: https://mandaringpd.ru/stati/seo-kak-fundament-biznesa-pochemu-igra-v-dolguju-edinstvennaja-strategija-kotoraja-okupaetsja/

  13. Управление репутацией — как выстроить долгосрочную стратегию на 12 месяцев?

  14. Spot on with this write-up, I actually think this website needs a great deal more attention. I’ll probably be returning to read more, thanks for the advice!

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>