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

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

  2. Top web design https://webdesignfirmshub.com companies worldwide: a selection of the best studios for website and interface creation. Learn about case studies design approaches UX/UI solutions and innovations to help you choose a reliable contractor for your digital projects.

  3. Top branding agencies https://topbrandagencies.com worldwide: the best studios for brand development corporate identity and positioning. Portfolio reviews strategies and case studies will help you choose a reliable agency for business development and brand enhancement.

  4. Top UX/UI design https://uiuxagencies.com agencies: the best companies creating user-friendly interfaces and digital products. Explore case studies methodologies and approaches to UX/UI to choose a reliable contractor for your website or app.

  5. Дети растут быстро и важно выбрать комплекс с запасом по возрасту. Модульные площадки удобны тем что их можно дополнять новыми элементами по мере роста ребёнка. Это экономит деньги и продлевает срок службы комплекса.

  6. Дубликаты номеров https://avtostrahovka36.ru в Воронеже — изготовление и восстановление регистрационных знаков по ГОСТ. Срочно за 1 день качественные материалы соответствие требованиям и выгодные цены. Оформление быстро и без очередей.

  7. A non-profit organization https://linkimpact.org dedicated to supporting multicultural families environmental protection volunteerism and language and cultural exchange.

  8. Практик о заборах https://sinta-kedr.ru/ честный разбор материалов установки и стоимости. Узнайте плюсы и минусы разных видов заборов частые ошибки и реальные сроки службы. Полезные рекомендации перед покупкой и монтажом ограждений.

  9. An astrology portal http://www.burcler.com.az with daily horoscopes natal charts and forecasts. Online consultations zodiac sign compatibility and personalized recommendations will help you better understand yourself and make important decisions.

  10. Решили обустроить детскую площадку на даче — делюсь полезными советами. Первое — определите бюджет и размер площадки. Второе — выберите комплектацию под возраст детей. Третье — закажите у надёжного производителя с монтажом.

  11. Пробовал накрутку пару лет назад через дешёвые сервисы — толку не было, только деньги сжёг. Статья помогла понять, почему. Во-первых, сайт тогда был технически не готов (глубоко в выдаче). Во-вторых, использовал дешёвые прокси и сгенерированные отпечатки. Сейчас, почитав этот гайд, вижу системный подход: аудит сайта, правильный сбор семантики, плавный старт. Оставлю ссылку здесь, буду перечитывать перед запуском: https://partnerkin.com/tribuna/blog-vitalivivdenko/nakrutka-pf-v-yandekse-polnoe- . Много практических деталей.

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

  13. реконструкция и ремонт зданий и сооружений реконструкция и ремонт зданий и сооружений .

  14. Дубликаты номеров https://avtostrahovka36.ru в Воронеже — изготовление и восстановление регистрационных знаков по ГОСТ. Срочно за 1 день качественные материалы соответствие требованиям и выгодные цены. Оформление быстро и без очередей.

  15. Практик о заборах https://sinta-kedr.ru/ честный разбор материалов установки и стоимости. Узнайте плюсы и минусы разных видов заборов частые ошибки и реальные сроки службы. Полезные рекомендации перед покупкой и монтажом ограждений.

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>