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.

4,527 thoughts on “VB.NET and project imports

  1. Greetings! I know this is kinda off topic but I’d figured
    I’d ask. Would you be interested in exchanging links or maybe guest writing a
    blog article or vice-versa? My website addresses a lot of the same subjects as
    yours and I think we could greatly benefit from each other.

    If you’re interested feel free to send me an email.
    I look forward to hearing from you! Fantastic blog by the way!

  2. Heya i am for the first time here. I came across this board and
    I find It really helpful & it helped me out a lot. I’m hoping to give one thing back and help others such as you helped me.

  3. Нужны подписчики в Telegram? Поможем быстро увеличить аудиторию вашего канала или группы. Переходите по запросу привлечение подписчиков в телеграмм. Предлагаем накрутку живых и активных подписчиков без резких скачков и с минимальными списаниями. Подходит для старта новых каналов, повышения доверия и привлечения органической аудитории. Безопасное продвижение, гибкие объемы заказа и быстрый запуск. Увеличьте популярность вашего Telegram-канала уже сегодня.

  4. Кровля для дома из клееного бруса может быть любой — двускатная вальмовая мансардная. строительство деревянных домов СПб Для Ленобласти лучше скатная крыша — она справляется со снеговой нагрузкой и не требует частой очистки. строительство дома из клееного бруса Металлочерепица или гибкая черепица — оба варианта хороши.

  5. Хороший обзор для предпринимателей, которые хотят разобраться, из чего складывается стоимость SMM-услуг. Автор объясняет разницу между почасовой, проектной и абонентской оплатой, а также на что влияют объёмы и каналы. Полезно для планирования бюджета: https://f1-it.ru/uslugi-smm-prodvizheniya-v-sotsialynh-setyah.html

  6. Компактный детский городок для маленького двора — это реально. купить детскую площадку недорого Существуют модели размером всего 2×2 метра при этом с горкой лестницей и домиком. тут Идеальное решение для небольших участков.

  7. Планировка дома из клееного бруса может быть любой — дерево позволяет реализовать практически любые идеи. энергоэффективный дом из бруса Открытая планировка первого этажа с кухней-гостиной — самый популярный вариант. подробнее Спальни и приватные комнаты размещаются на втором этаже или в мансарде.

  8. Hiya! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly?

    My web site looks weird when viewing from my iphone4. I’m trying to
    find a theme or plugin that might be able to fix this issue.

    If you have any recommendations, please share. Thank
    you!

  9. кухни на заказ в санкт-петербурге кухни на заказ в санкт-петербурге .

  10. Как подготовить площадку под установку детского комплекса? Нужна ровная поверхность и мягкое покрытие. детская площадка с доставкой Отсыпка песком или резиновая плитка — лучшие варианты для безопасности. детская площадка для дачи Главное — не ставить площадку на бетон или асфальт.

  11. Всем привет! Для тех, кто разбирается в продвижении в соцсетях, нашел хорошую статью. Автор подробно останавливается на принципах работы, инструментах и показателях эффективности. Есть разделы про выбор подрядчика и локальные особенности для Москвы. Много полезного для планирования стратегии. Вот ссылка: https://foto-videomontaz.ru/smm-prodvizhenie-v-soczialnyh-setyah-princzipy-instrumenty-i-pokazateli-effektivnosti/

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>