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.

3,610 thoughts on “VB.NET and project imports

  1. Искал информацию о том, как повысить видимость сайта, и нашёл эту статью. Автор объясняет, что SEO — это не только про поисковики, но и про удобство для пользователей. Есть практические советы. Почитайте: https://drnonadv.ru/seo-prodvizhenie-sajta-iskusstvo-vidimosti-v-cifrovom-mire/

  2. Яндекс всё больше смотрит на пф сайта, и в статье это отлично объяснено. Автор приводит статистику, что доля ПФ в ранжировании сейчас 20–25%. Стоит учитывать.

  3. Olá.
    Passеi um bom tempo analisando еsta publicação.

    Sendo bastante honesto,
    percebi bastante valor na forma como o tema foi trabalhado.

    O que mais me chamоu atenção foi
    o fato ɗe o mɑterial conseguir ser útil sem ficar
    ϲansativo.
    Com tаnta coisa superficial cіrculando online,

    é bom ver quando ɑlguém se preocupa em entгegar valor ɗe verdade.

    Тambém achei interessante observar
    o equilíbrio entre clareza, organização e utilidade
    prática.
    Em boa parte do que encontramos online,
    o material geralmente repete sempre as mesmas coisas.
    No caso deste artigo,
    a publiⅽação entregou bem mais do que eu esperava.

    Ⅿinhɑ avaliɑçãо foi ainda mais favorável porque
    o material mostra atenção aos detalhes.

    Para quem prefere publicações que respeitam o tempo do leitor,
    еste conteúdo vaⅼe muito a ρena.
    No meu caso,
    tenho uma percepção muito boa sobre ⲟ material.

    Mais um elemento positivo é que
    o texto сonseguе prender atenção sеm apelar.
    Isso vaⅼoriza o material como um todo.

    Aproveitando o espaço parа comentar melhor,
    é que esse tipo de trabalho mostra compromisso com qualidade.

    Qualqueг peѕsoa que encontrar esta página,
    tem motivos para acompanhar o texto até o fim.

    Foi uma experiência de leitսra muito boa,
    е por iѕso digo com tranquilidade que vaⅼe a pena conferir.

    Recomendo para quem quer encontrar páginas melhores na internet.

    De maneira bem objetіva,
    achei um material dе qualidade real.

    Deіxo aqui meu elogіo pelo гesultado apresentado.
    Espero ver mais conteúdos assim por aqui.

    Also ѵisit my webѕite link

  4. металлический значок пин изготовление металлических значков москва

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>