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

  1. Do you have a spam issue on this site; I also am a blogger,
    and I was curious about your situation; we have created some nice practices and we are looking to trade solutions with
    other folks, please shoot me an email if interested.

  2. Everything iѕ very open with а clear explanation of the issuеs.
    It ᴡas truly informative. Your wеbsite is very helpful.
    Thanks for sharing!

    My web page; سایت رسمی ایرانی – Nn6Uoa.Pila.Pl -

  3. My spouse and I stumbled over here by a different website and
    thought I may as well check things out. I like what I see so i am just following you.
    Look forward to going over your web page for a second time.

  4. First of all I would like to say great blog! I had a quick question which I’d like to ask
    if you do not mind. I was curious to find out how you center
    yourself and clear your mind before writing. I have had a tough time clearing my thoughts in getting my thoughts out there.

    I truly do enjoy writing however it just seems like the first 10
    to 15 minutes are lost just trying to figure out how to begin. Any suggestions or hints?
    Appreciate it!

  5. whoah this blog is magnificent i love reading your posts.
    Keep up the good work! You recognize, lots of people
    are searching round for this info, you can aid them greatly.

  6. Коллеги, хороший материал о долгосрочном характере SEO в 2026 году. Автор разбирает, как изменились алгоритмы поисковых систем (акцент на контекст и поведенческие факторы) и почему старые методы перестали работать. В центре внимания — качественный контент и пользовательский опыт (UX), а не технические уловки. Тем, кто хочет устойчивых позиций, обязательно к прочтению: https://nogmed.ru/ponimanie-dolgosrochnogo-haraktera-seo-v-2026-godu/

  7. Покупка шаблона Аспро Оптимус — это готовое решение для запуска современного интернет-магазина на 1С-Битрикс. Переходите по запросу цена шаблона Aspro Optimus. Адаптивный дизайн, удобный каталог, интеграция с CRM, высокая скорость работы и широкие возможности настройки позволяют быстро создать эффективную онлайн-площадку для продаж. Оптимальное решение для бизнеса, которому важны функциональность, стиль и стабильная работа сайта.

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>