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

  1. Привет всем Современные фасады домов Современные строительные технологии позволяют значительно сократить сроки строительства и повысить надежность здания. Полная информация по ссылке – https://dagtechstroy.ru/architectural-design/ рнс в строительстве строительство коттеджей дагестан строительство крыши строительство загородных домов под ключ Наша миссия – ДагТехСтрой – строительство фбс это в строительстве Удачи и комфорта в жизни Как построить дом с хорошей теплоизоляцией 087_bad

  2. I was wondering if you ever considered changing the layout of your site?
    Its very well written; I love what youve got to
    say. But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or 2
    pictures. Maybe you could space it out better?

  3. 당신은 당신의 프레젠테이션으로 정말로
    정말 쉽게 보이게 했습니다. 하지만 저는 이 문제가
    정말 결코 이해하지 못할 것이라고 생각합니다.
    저에게는 너무 복잡하고 느껴집니다. 다음 제출를 기대하며, 그것을 익히려고 노력할 것입니다!

    Every weekend i used to visit this web site, because i
    want enjoyment, since this this web site conations in fact pleasant
    funny data too.

    Wow, what an impressive site! Your posts on blog are spot-on. I love how you break down complex topics into easy-to-understand points.
    I’ll be sharing this with my friends. Thanks for the great content!

    이 웹사이트는 정보의 보물창고네요! 이 포스트는 특히 흥미롭고 이해하기 쉬웠어요.

    imperdiet에 대해 더 깊이 다룬 시리즈가 있으면 좋겠어요.
    멋진 콘텐츠 감사합니다!

  4. Нужна бесплатная юридическая консультация? Переходите по запросу помощь юриста бесплатно онлайн по телефону в Омской области и получите помощь опытного юриста по любым правовым вопросам: семейные споры, долги, недвижимость, трудовые конфликты, защита прав потребителей и многое другое. Задайте вопрос онлайн или по телефону и получите подробный разбор вашей ситуации и рекомендации по дальнейшим действиям. Консультация проводится бесплатно и конфиденциально.

  5. Между прочим, если вас интересует Актуальные события: Нижегородская область, посмотрите сюда.

    Смотрите сами:

    https://51media.ru

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>