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.

6,789 thoughts on “VB.NET and project imports

  1. Что должно насторожить в коммерческом предложении от маркетинговое агентство?

  2. Для тех, кто ищет информацию по теме “Азиатский SPF: особенности и преимущества корейских кремов”, нашел много полезного.

    Вот, можете почитать:

    https://hard-power.ru

  3. Продвижение сайта в Яндексе — с чего начинать если сайт вообще не индексируется?

  4. Как скорость загрузки сайта влияет на Поисковое продвижение сайта?

  5. It’s going to be ending of mine day, however before
    end I am reading this great article to increase my know-how.

  6. Your mode of describing the whole thing in this paragraph is genuinely pleasant, all can simply
    be aware of it, Thanks a lot.

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

  8. Особенно понравился материал про Актуальные события и экономика Красноярского края.

    Вот, можете почитать:

    https://krsn24media.ru

  9. سلام و عرض ادب، بنده اخیرا در حال جستجو در اینترنت به این
    سایت پیداش کردم و صادقانه برام جالب بود.
    نوشته‌هاش مفید بود و خیلی کم پیش میاد همچین
    منبعی ببینم. به نظرم برای افراد مختلف ارزش دیدن داره.
    اگه دنبال محتوای مفید هستن پیشنهاد می‌کنم حتما سر بزنن.

    به طور کلی راضی‌کننده بود
    و قطعا بازدیدش می‌کنم

    در نهایت امر

    برای افرادی که

    کازینو آنلاین

    میخوان امتحان کنن

    این سرویس آنلاین

    خیلی راحت می‌تونه

    ارزش بررسی داشته باشه

    در ضمن

    دامنه‌هایی مثل

    enfejaronline معتبر

    و

    ѕibbet محبوب

    شناخته شده هستن

    در کل

    مناسب بود

    و

    قطعا

    نگاهش می‌کنم

    .

    my web site: راهنمای کامل شروع بازی انفجار برای مبتدی‌ها

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>