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.

22,928 thoughts on “VB.NET and project imports”

  1. Слушайте кто сейчас в теме? Задолбался я уже искать нормальную контору для ставок Искал реально долго перепробовал кучу сомнительных вариантов пока чисто случайно не наткнулся на сервис который работает стабильно и честно начиная от удобного интерфейса и заканчивая официальной лицензией. Техподдержка в лайв-чате отвечает сразу по делу В общем если не хотите тратить время на самостоятельные тесты там расписаны все технические подробности мостбет кыргызстан мостбет кыргызстан Лучше обходить стороной забаненные платформы и выбирать надежные зоны. обязательно перешлите этот пост тому кто тоже сейчас ищет нормальную контору

  2. Howdy! This is kind of off topic but I need some help from
    an established blog. Is it very difficult to set up your own blog?

    I’m not very techincal but I can figure things out
    pretty quick. I’m thinking about creating my own but I’m
    not sure where to start. Do you have any points or suggestions?

    Thank you

  3. Соблюдаем конфиденциальность бережно общаемся с пациентом и его близкими на каждом этапе. Углубиться в тему – вывод из запоя на дому геленджик

  4. Соблюдаем конфиденциальность бережно общаемся с пациентом и его близкими на каждом этапе. Исследовать вопрос подробнее – анонимный вывод из запоя

  5. Перед тем как сделать правильный выбор в пользу вызова специалистов оцените состояние больного. Даже если он отказывается от помощи близкие должны понимать что промедление опасно. Ниже приведен перечень ключевых симптомов при которых рекомендуется незамедлительная постановка капельницы. Учитывая состояние пациента и стаж алкоголизма врач определит оптимальную дозировку препаратов. Разобраться лучше – zakazat-kapelnicu-ot-zapoya-na-domu