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

  1. 12 лет на рынке Белгорода — это реальный опыт. Специалисты видели самые разные ситуации и знают как решать нестандартные задачи. Наш случай был непростым — справились отлично. 1С бухгалтерия Белгород

  2. Между прочим, если вас интересует Футбол и спорт: турнирные хроники и анализ противостояний, посмотрите сюда.

    Ссылка ниже:

    https://tottenham-army.ru

  3. продвижение сайта с гарантией продвижение сайта с гарантией .

  4. Как работа с поведенческими факторами встроена в Seo продвижение в Google под ключ?

  5. Покупка шаблона «Аспро Корпоративный сайт 3.0» — быстрый старт для современного корпоративного сайта на 1С-Битрикс. Переходите по запросу купить Аспро Allcorp 3. Готовый адаптивный дизайн, удобные настройки, высокая скорость работы и SEO-оптимизация помогут запустить проект без лишних затрат времени. Подходит для бизнеса, услуг, производства и компаний любого масштаба.

  6. Как [url=https://vpn-1.ru]VPN[/url] взаимодействует с брандмауэром операционной системы?

  7. Very nice post. I just stumbled upon your weblog and wanted to say that
    I have truly enjoyed surfing around your blog posts.
    In any case I’ll be subscribing to your rss feed and I hope you write again very soon!

  8. A person necessarily assist to make seriously articles I’d state.
    That is the first time I frequented your web page and to this point?
    I surprised with the research you made to create this particular publish
    extraordinary. Fantastic process!

  9. Do you have a spam issue on this site; I also am
    a blogger, and I was curious about your situation; many of us have created some nice methods and we
    are looking to trade solutions with other folks, why not shoot me an e-mail if interested.

  10. Между прочим, если вас интересует Фанатские мнения и отчеты о спортивных баталиях, посмотрите сюда.

    Вот, делюсь ссылкой:

    https://fan-arsenal.ru

  11. Адаптивный шаблон «Аспро: Корпоративный сайт 2.0» для создания современного сайта компании на 1С-Битрикс. Переходите по запросу шаблон Aspro Allcorp2 demo. Подходит для бизнеса, услуг, производства и корпоративных проектов. Готовые блоки, удобная настройка дизайна, SEO-оптимизация и высокая скорость запуска. Поможем купить, установить и настроить шаблон под задачи вашего бизнеса.

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>