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

  1. I think this is among the most significant info for me.
    And i’m glad reading your article. But wanna remark on some general things, The site style is wonderful, the articles is really nice :
    D. Good job, cheers

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

  3. Хочешь оригинальную подушку? дакимакура подушка на заказ комфорт и уют для сна. Длинная форма мягкий наполнитель и стильные принты. Отлично подходит для отдыха и расслабления.

  4. Коллеги, кто сомневается, работает ли накрутка ПФ в 2026 году, — прочитайте этот материал. Автор разбирает реальные кейсы и даёт чёткие цифры: цена от 0,8 рубля за клик, примеры бюджетов для разных ниш (стоматология, клининг, автодилер). Мне помогло понять, что это инвестиция, а не расход. Почитайте: https://teletype.in/@pfup/3mo6UGVvR2a

  5. Нужен пластический хирург? клиника пластической хирургии современные операции и эстетические процедуры. Опытные хирурги безопасные методики и индивидуальный подход. Консультации диагностика и качественный результат.

  6. Избыточные запасы съедали оборотные средства. Когда начал видеть реальные остатки и скорость продаж по каждой позиции оптимизировал закупки и высвободил деньги. кадровый учёт малый бизнес

  7. Нужна мебель? мебель из массива цена эксклюзивные изделия из натурального дерева. Индивидуальный дизайн качественные материалы и точное изготовление. Решения для дома и бизнеса.

  8. Please let me know if you’re looking for a article author for
    your weblog. You have some really good articles and
    I believe I would be a good asset. If you ever want
    to take some of the load off, I’d absolutely love to write some articles for your blog in exchange for
    a link back to mine. Please blast me an email if interested.
    Regards!

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

  10. you’re actually a excellent webmaster. The site loading pace is incredible.
    It seems that you’re doing any distinctive trick.
    In addition, The contents are masterwork. you’ve performed a
    excellent job in this subject!

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>