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.

5,419 thoughts on “VB.NET and project imports

  1. Azzahrah Putri Rent Car adalah perusahaan rental mobil makassar yang berkomitmen memberikan pengalaman sewa mobil makassar terbaik, memenuhi semua kebutuhan perjalanan Anda dengan layanan yang berkualitas dan profesional. Fokus kami adalah memastikan kenyamanan dan kepuasan pelanggan, menjadikan kami mitra perjalanan yang dapat diandalkan.

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

  3. Hello!

    Want to know what real users think?

    I recommend Miki — a crypto-friendly site with 8000+ games: check this out

    Great game selection. Worth a look.

    Share your experience below?

  4. Comprehensive asthma treatment guide — symptoms causes and effective management. Explore inhalers medications and daily care tips to reduce attacks and maintain better respiratory health.

  5. сайт дизайн интерьера студия дизайна интерьера

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

  7. Открываешь кейсы KC? https://ural-hifi.ru/fonts/inc/promokod_easydrop.html актуальные бонусы и скидки для пользователей. Получайте выгодные предложения дополнительные возможности и экономьте при использовании сервиса. Все действующие промокоды в одном месте.

  8. Займы онлайн без отказа на https://credit-world.ru – это простой способ оформить займ за несколько минут без лишних проверок и сложных условий. В каталоге доступно более 50 МФО где высокий шанс одобрения заявок. Изучите доступные варианты выбрать оптимальные условия и подать заявку за несколько минут и узнать результат в кратчайшие сроки.

  9. Office for rent https://rentofficetoday.com/en/ business premises in business centers and commercial buildings. Compare office for rent private office space for rent and offices to rent in prime locations. Find the best office rental solutions and rent office space that fits your business needs

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>