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

  1. Всем, кто только начинает погружение в SEO, советую прочитать эту статью целиком, особенно раздел про внешние ПФ. Я сам долго не мог понять, почему конкуренты с не очень красивыми сайтами висят в топе Яндекса. А ответ прост: у них грамотно настроена накрутка поведенческих факторов в яндексе, которая обманывает алгоритмы и создает иллюзию популярности. Теперь хоть понимаю, куда копать и какие метрики отслеживать.

  2. Второй свет в доме из клееного бруса — эффектное решение

  3. Выбор детской площадки для дачи — непростая задача ведь хочется и качество и безопасность и чтобы детям было интересно. Деревянные комплексы считаются самыми экологичными и долговечными особенно из лиственницы. Главное — выбирать проверенного производителя с гарантией на конструкцию.

  4. ремонт гидроизоляции фундаментов и стен подвалов ремонт гидроизоляции фундаментов и стен подвалов .

  5. Коллеги, кто глубоко копает тему, обратите внимание на раздел про инструменты. Автор подробно сравнивает облачные сервисы и самостоятельную накрутку через BAS/Monstro. Очень правильно написано про необходимость мобильных прокси, реальных фингерпринтов и нагуленных кук — это 90% успеха, чтобы не получить роботность в Метрике. Цены на самостоятельную накрутку (от 30к в месяц на инфраструктуру) тоже реалистичные. Статья в закладки: https://partnerkin.com/tribuna/blog-vitalivivdenko/nakrutka-pf-v-yandekse-polnoe- . Полезно и для новичков, и для профи.

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>