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

  1. This paragraph offers clear idea in favor of the
    new users of blogging, that in fact how to do blogging.

  2. Покупка шаблона «Аспро Максимум» — быстрый способ запустить мощный интернет-магазин на 1С-Битрикс без долгой разработки. Переходите по запросу интернет-магазин Aspro Максимум. Вы получите готовую структуру, адаптивный дизайн, продуманный каталог и встроенные инструменты для продаж и SEO. Решение легко настраивается под задачи бизнеса и помогает выйти на рынок в кратчайшие сроки.

  3. Добрый день Как снизить нагрузку на оборудование Пуск оборудования после ремонта требует проверки всех параметров. Это позволяет избежать повторных неисправностей. Полная информация по ссылке – https://dagtechservice.ru/services/ оборудование сервисное обслуживание подключение промышленного оборудования договор обслуживания компьютерного оборудования монтаж производственных линий Дом – Технический сервис обслуживание водоочистительного оборудования сервисное Удачи и комфорта в жизни Почему важна точная юстировка оборудования 1303000

  4. Покупка шаблона «Аспро Максимум» — быстрый способ запустить мощный интернет-магазин на 1С-Битрикс без долгой разработки. Переходите по запросу демо интернет-магазина Aspro Max. Вы получите готовую структуру, адаптивный дизайн, продуманный каталог и встроенные инструменты для продаж и SEO. Решение легко настраивается под задачи бизнеса и помогает выйти на рынок в кратчайшие сроки.

  5. Покупка шаблона «Аспро Максимум» — быстрый способ запустить мощный интернет-магазин на 1С-Битрикс без долгой разработки. Переходите по запросу описание шаблона интернет-магазина Аспро Максимум. Вы получите готовую структуру, адаптивный дизайн, продуманный каталог и встроенные инструменты для продаж и SEO. Решение легко настраивается под задачи бизнеса и помогает выйти на рынок в кратчайшие сроки.

  6. Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?

    I’ve been trying for a while but I never seem to get there!

    Thanks

    Review my blog – website bokep

  7. Бытовка каркасная — бюджетный вариант для сезонного использования. Для летней стройки оптимально. Не переплачивали за сэндвич-панели которые там были бы явно избыточны. модульное здание Москва

  8. I really like what you guys are usually up too. This sort of clever work and exposure!

    Keep up the very good works guys I’ve included you
    guys to my personal blogroll.

  9. hi!,I love your writing very so much! proportion we be in contact
    extra approximately your post on AOL? I require an expert in this house to solve my problem.
    Maybe that is you! Looking forward to peer
    you.

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>