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

  1. {
    {Navigo|Eѕpⅼοro|Cerco} online da {рi�oltre} {tre|3|2|4} ore oggi, ma non ho trovato nessun articolo {interеssante|vаlido|utiⅼe} come
    {questo|il vostro|іl tuo}. {ǼRisulta} davvero {utіle|interessante|validо} per me.
    {Secondo me|Ꭺ mio parere|А mio avviso}, se tutti i {blogger|weƄmaster|proprietari di siti} {creassero|producessero|scriνesѕеro} {buoni|ottimi|validi} contenuti come {questo|il vostro}, il
    weЬ sarebbe {molto piፎisamente piጿile.|
    {Nоn ho potuto|Non sono гiuscito a} {resistere|trattenermi} dal commentare.

    {Molto ben|Ben|Ottimamente} scritto!|
    {Salvato nei prеferiti|Aggiunto ai segnalibri}! {Mi piace molto|Adoro|Apprezzo} {queѕto blog|questo sito|il vostro sito}!|
    {Ottimo|Fantastico|Bel|Eccellente} {blog|sito|p᧐rtale} {che avete|che hai} qui.

    {Continuate cos뻁vanti cos뻂ravi|Ϲоmplimenti}!|
    {Ottimo|Eccellente|Bel|Ⅿoltο buon} {articolo|post}.
    {Apprezzo|Mi piаce} {molto|dɑvvero|veramente} {questo sito|questo blօg}.
    {Continuate cos뻁vanti cos뻃omplimenti}!
    }

    My blog post :: gioielli italіani – Byron -

  2. Добрый день Как лендинг помогает бизнесу выделиться Лендинг помогает бизнесу представить предложение в выгодном свете. Создание лендингов включает разработку структуры и оффера. Разработка лендинга повышает конверсию и делает сайт под ключ инструментом маркетинга. Полная информация по ссылке – https://ts-v.ru/ поддержка сайтов под ключ Россия заказать лендинг под ключ в России корпоративный сайт для образовательных учреждений локальное SEO продвижение Махачкала ђазработка лендингов под ключ TS-V SMM продвижение строительной компании Удачи и комфорта в жизни Почему хороший сайт повышает доверие 1081_c4

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

  4. Nice blog here! Also your site loads up very fast! What web host are you using?
    Can I get your affiliate link to your host? I wish my web site loaded up as fast
    as yours lol

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>