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

  1. Нужна премиум мебель? https://premialnaya-mebel.ru изготовление на заказ. Натуральные материалы эксклюзивный дизайн и долговечность. Решения для дома и бизнеса с высоким уровнем качества.

  2. Hello terrific website! Does running a blog such as this take a great
    deal of work? I’ve no expertise in programming however I
    had been hoping to start my own blog soon. Anyhow, if you have any suggestions or tips for new blog owners please share.
    I understand this is off subject however I simply had to ask.
    Cheers!

  3. Ребята, кто любит конкретику — в статье есть шикарные расчёты ROI для ниши «юридические услуги». Автор показывает: до накрутки 500 посетителей и 15 заявок, после накрутки (бюджет 20 000 ?) — 1500 посетителей и 45 заявок. ROI = 1400%. Каждый рубль принёс 14 рублей прибыли. Также есть прогноз, что будет с теми, кто не начнёт крутить: потеря позиций, вымывание из топа, уход клиентов к конкурентам. Очень наглядно: https://yagla.ru/blog/drugoe-o-marketinge/nakrutka-povedencheskih-faktorov-v-2026–2604u119831/

  4. У меня кондиционеры, сезон короткий. Классическое SEO не успевает — пока сайт раскачается, лето заканчивается. В статье прямо написано про сезонный бизнес: накрутка запускается за 1–2 месяца до сезона, за 2–4 недели выводит в топ-10, и к пику продаж сайт уже собирает трафик. Автор даже даёт примеры бюджетов. Очень вовремя наткнулся, спасибо: https://yagla.ru/blog/drugoe-o-marketinge/nakrutka-povedencheskih-faktorov-v-2026–2604u119831/

  5. It’s going to be ending of mine day, except before finish I am reading this impressive post to increase my experience.

  6. Юрист по делам несовершеннолетних оказывает квалифицированную правовую помощь детям и их законным представителям. Переходите по запросу юрист по делам несовершеннолетних граждан. Специалист защитит права ребёнка в судах и государственных органах, решит вопросы опеки, споры в семейных и уголовных делах. Консультации помогают быстро разобраться в ситуации и выбрать правильную стратегию защиты интересов несовершеннолетнего.

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>