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

  1. Can I simply say what a comfort to find someone who truly understands
    what they’re discussing on the net. You actually realize how
    to bring a problem to light and make it important. A lot more people ought to read this and understand this side
    of your story. It’s surprising you aren’t more
    popular since you definitely possess the gift.

  2. May I just say what a comfort to uncover somebody that genuinely understands what they’re
    discussing on the web. You certainly understand how to bring an issue to light and make it important.
    More and more people need to look at this and understand this side of your story.

    I can’t believe you are not more popular since you most certainly possess the gift.

  3. Разработка интернет-магазина на 1С-Битрикс под ключ на шаблоне. Переходите по запросу создание магазина на Битрикс и получите удобный, быстрый и продающий сайт с адаптивным дизайном, интеграцией CRM, оплатой и доставкой. Оптимизируем под SEO и помогаем увеличить продажи. Индивидуальный подход, прозрачные сроки и поддержка на всех этапах.

  4. Всем привет! Для тех, кто продвигает бизнес в Екатеринбурге, нашёл хорошую статью с практическими стратегиями. Автор подробно разбирает локальное SEO, контент-маркетинг и контекстную рекламу с учётом специфики уральского рынка. Особенно полезен раздел про работу с отзывами и геотаргетинг. Рекомендую: https://avto-dom-tumen.ru/stati/prodvizhenie-sajtov-v-ekaterinburge-jeffektivnye-strategii-dlja-uspeshnogo-onlajn-prisutstvija/

  5. I am a Senior Enterprise Security Leader specializing in AI-driven cybersecurity architecture, offensive
    security research, and large-scale security automation.

    With extensive experience across enterprise environments,
    I focus on designing and implementing advanced security strategies that combine artificial intelligence, automation, and real-world adversarial simulation to strengthen organizational resilience.

    My expertise spans:

    AI-powered threat detection and security analytics

    Offensive security research and red team architecture

    Enterprise SOC modernization and automation

    Application and cloud security engineering

    Large-scale vulnerability discovery and exploitation research

    Security tooling and infrastructure design

    I operate at the intersection of security engineering
    and AI innovation, building systems that not only detect threats but proactively anticipate them.

    Throughout my career, I have led complex security initiatives,
    architected enterprise-grade defensive frameworks, and developed offensive
    methodologies that mirror real-world attack behavior.

    My mission is clear:
    To elevate enterprise cybersecurity by integrating intelligent
    automation, strategic security leadership, and adversarial thinking.

    If you are building next-generation security programs,
    exploring AI-powered defense, or modernizing enterprise security operations – let’s connect.

  6. Stackshine https://en.stackshine.io/ a SaaS cost management platform: subscription control usage transparency renewal tracking and employee offboarding. Optimize your budget and reduce unnecessary software costs.

  7. Hey there! I know this is kinda off topic but I was wondering if you knew where I
    could locate a captcha plugin for my comment form? I’m using the same blog
    platform as yours and I’m having trouble finding one?
    Thanks a lot!

  8. Разработка сайта на 1С-Битрикс под ключ на шаблоне. Переходите по запросу создание сайта 1 с Битрикс и получите удобный, быстрый и продающий сайт с адаптивным дизайном, интеграцией CRM, оплатой и доставкой. Оптимизируем под 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>