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

  1. Appreciating the time and energy you put into your
    blog and detailed information you present.
    It’s great to come across a blog every once in a while
    that isn’t the same outdated rehashed material.

    Great read! I’ve saved your site and I’m including your RSS
    feeds to my Google account.

  2. Привет всем Как сократить время реагирования на поломку Плановое техническое обслуживание оборудования позволяет своевременно выявлять износ и предотвращать серьезные поломки. Это обеспечивает надежность работы и снижает расходы на ремонт. Полная информация по ссылке – https://dagtechservice.ru/category/tehnicheskoe-obsluzhivanie/ монтаж промышленного оборудования литература пуско наладка и обслуживание оборудования цель сервисного обслуживания оборудования монтаж оборудования на производстве Архивы Без рубрики – Технический сервис сервисное обслуживание оборудования новосибирск Удачи и комфорта в жизни Как снизить уровень шума оборудования 0007ef1

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

  4. This is a good tip particularly to those fresh to the blogosphere.

    Simple but very precise info… Thanks for sharing this one.
    A must read post!

  5. Hi everybody, here every one is sharing these familiarity,
    so it’s good to read this blog, and I used to pay a visit this web
    site every day.

  6. What’s up, I read your blogs regularly. Your story-telling style is awesome, keep up the good work!

  7. Для тех кто любит кино онлайн открыл для себя удобную платформу смотреть фильмы — проект KinoStart. KinoStart — это не просто сайт это целая вселенная кино. Смотрите фильмы онлайн путешествуя по жанрам и эпохам. фильмы онлайн бесплатно Каждый фильм — это новое приключение. Откройте для себя безграничные возможности кино. Вот ссылка: — https://www.kinostart-1.top фильмы kinostart смотретькино смотреть онлайн без регистрациифильмы на андроид онлайн Всем хорошего кино

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>