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.

4,515 thoughts on “VB.NET and project imports

  1. Kent Casino kentcasino.ru.com официальный сайт регистрация и бонусы. Онлайн казино с быстрым выводом средств слотами и играми от топ провайдеров. Получите фриспины и играйте на реальные деньги безопасно.

  2. Kent Casino kentcasino ru com официальный сайт регистрация и бонусы. Онлайн казино с быстрым выводом средств слотами и играми от топ провайдеров. Получите фриспины и играйте на реальные деньги безопасно.

  3. прямые кухни на заказ от производителя прямые кухни на заказ от производителя .

  4. For latest information you have to pay a quick visit
    world-wide-web and on internet I found this web page as a
    most excellent website for most recent updates.

  5. I’m very happy to discover this website. I want to to
    thank you for ones time just for this fantastic read!! I definitely enjoyed every little bit of it
    and i also have you book-marked to check out new things on your website.

  6. Дома из клееного бруса — настоящий тренд загородного строительства в Ленобласти. каталог проектов Всё больше коттеджных посёлков предлагают участки именно под деревянные дома. строительство деревянных домов СПб Экологичность скорость строительства и эстетика делают брус фаворитом у покупателей.

  7. Нужна бесплатная юридическая консультация? Переходите по запросу консультация юриста онлайн бесплатно в Санкт-Петербурге и получите помощь опытного юриста по любым правовым вопросам: семейные споры, долги, недвижимость, трудовые конфликты, защита прав потребителей и многое другое. Задайте вопрос онлайн или по телефону и получите подробный разбор вашей ситуации и рекомендации по дальнейшим действиям. Консультация проводится бесплатно и конфиденциально.

  8. Как продлить срок службы деревянной детской площадки? Обновляйте пропитку каждые 2-3 года. смотрите тут Подтягивайте крепёж перед каждым сезоном и заменяйте изношенные элементы вовремя. детский игровой комплекс купить При таком уходе площадка прослужит 15-20 лет.

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>