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.

3,619 thoughts on “VB.NET and project imports

  1. Эта разъяснительная статья содержит простые и доступные разъяснения по актуальным вопросам. Мы стремимся сделать информацию понятной для широкой аудитории чтобы каждый смог разобраться в предмете и извлечь из него максимум пользы. Получить больше информации – https://vivod-iz-zapoya-2.ru/

  2. Хороший материал для тех, кто только начинает разбираться в SMM или выбирает подрядчика. В статье объясняют, чем SMM отличается от традиционной рекламы, какие бывают цели и этапы работы. Есть чек-лист по выбору агентства и разбор типичных ошибок. Полезно: https://f1-it.ru/uslugi-smm-prodvizheniya-v-sotsialynh-setyah.html

  3. Коллеги, кто хочет разобраться в SEO, рекомендую эту статью. Там объясняют, почему продвижение — это долгосрочная инвестиция, а не разовая акция. Есть примеры и чёткая структура. Почитайте: https://runeterra-wiki.ru/seo-prodvizhenie-sajta-iskusstvo-i-nauka-uspeha-v-cifrovom-mirovom-prostranstve/

  4. Этот интересный отчет представляет собой сборник полезных фактов касающихся актуальных тем. Мы проанализируем данные чтобы вы могли сделать обоснованные выводы. Читайте чтобы узнать больше о последних трендах и значимых событиях Получить дополнительные сведения – https://vivod-iz-zapoya-2.ru/

  5. Нашёл материал про SEO, где авторы называют это искусством видимости. Разбирают техническую оптимизацию, контент и работу со ссылками. Рекомендую к прочтению: https://yasamstudio.ru/2026/01/29/seo-prodvizhenie-sajta-iskusstvo-vidimosti-v-cifrovom-mire/

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

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>