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

  1. You really make it seem really easy with your presentation however I find
    this matter to be actually something that I believe I might never understand.
    It seems too complicated and very huge for me.
    I am looking ahead on your subsequent submit, I’ll try
    to get the hold of it!

  2. Бытовка за 2 рабочих дня — выручила когда прежний подрядчик подвёл по срокам. Позвонил в пятницу в среду уже стояла на площадке. Чёткая работа без лишних обещаний. блок контейнер с доставкой Москва

  3. An interesting discussion is worth comment. I think that you ought to publish more about this topic, it may not be a taboo subject but generally people don’t speak
    about these topics. To the next! Kind regards!!

  4. Установка на бетонные блоки без фундамента — удобно и дёшево. Специалист при доставке выставил контейнер по уровню. Стоит уже третий год не просел и не наклонился. купить блок контейнер в Москве

  5. Hi this is somewhat of off topic but I was wanting to
    know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding knowledge so I wanted to get advice
    from someone with experience. Any help would be enormously
    appreciated!

  6. Hi! I’m at work browsing your blog from my new iphone
    4! Just wanted to say I love reading through your blog and look forward to all your posts!
    Carry on the excellent work!

  7. Woah! I’m really enjoying the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s difficult to
    get that “perfect balance” between usability and appearance.

    I must say you have done a excellent job with this.
    Additionally, the blog loads extremely fast for me on Chrome.
    Exceptional Blog!

  8. Добрый день Как повысить эффективность ремонтных бригад Техническое обслуживание оборудования направлено на предотвращение неисправностей и продление срока службы. Регулярная диагностика и профилактика позволяют снизить затраты на ремонт и повысить надежность. Полная информация по ссылке – https://dagtechservice.ru/about/ сервисное обслуживание инженерного оборудования техническое обслуживание промышленного оборудования договор обслуживания офисного оборудования услуги по ремонту оборудования Услуги – Технический сервис сервисное обслуживание теплового оборудования Удачи и комфорта в жизни Что входит в плановое техническое обслуживание 07ef163

  9. Более 5000 реализованных проектов — это не просто цифра. Чувствуется что менеджеры видели самые разные задачи и умеют задавать правильные вопросы для подбора комплектации. модульный офис Москва

  10. Ԍood day! Do you know if they make any ρlugiins to help wіth SEΟ?
    I’m tfying tto get my blog to rank foг some targeted keɡwords but I’m not seeing very gοpod ɡains.
    If you knopw of any pleaxe share. Cheers!

    Here is my wеb site; سایت گیمینگ

  11. Покупка шаблона Аспро Next — готовое решение для быстрого запуска современного интернет-магазина на 1С-Битрикс. Переходите по запросу цена Аспро Некст 2.0. Шаблон сочетает стильный дизайн, удобный каталог, адаптивную верстку и широкий набор маркетинговых инструментов для увеличения продаж. Подходит для разных ниш бизнеса, легко настраивается и интегрируется с необходимыми сервисами. Оптимальный выбор для тех, кто хочет запустить эффективный онлайн-магазин без лишних затрат времени.

  12. Здравствуйте Современные архитектурные решения для частных домов Каждый дом начинается с проекта. Мы разрабатываем архитектурные решения с учетом особенностей участка пожеланий заказчика и современных строительных стандартов чтобы создать комфортное пространство для жизни. Полная информация по ссылке – https://dagtechstroy.ru/what-we-do/ безопасность труда в строительстве строительство фасада дома расшифровка нвк в строительстве строительство загородных домов под ключ цена Познакомьтесь с профессионалами – ДагТехСтрой – строительство вор в строительстве расшифровка Удачи и комфорта в жизни Как выбрать материалы для долговечного дома ffc6966

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>