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

  1. I have been browsing online more than 3 hours these days, yet I by no means
    found any interesting article like yours. It is beautiful price enough
    for me. In my opinion, if all site owners and bloggers made good content as you probably did, the web
    will be much more useful than ever before.

  2. Уничтожение вредителей https://dezinfekciya-mcd.ru/ уничтожение бактерий вирусов и насекомых. Обработка квартир домов и коммерческих помещений. Безопасные препараты опытные специалисты и гарантия результата.

  3. База сайтов для Xrumer — это тщательно отобранный список площадок для эффективного размещения ссылок и автоматического постинга. Переходите по запросу цена базы ссылок хрумер для постинга. База подходит для SEO-продвижения, ускоряет наращивание ссылочной массы и экономит время. Актуальные и рабочие ресурсы, регулярное обновление и высокая проходимость обеспечивают максимальный результат.

  4. База сайтов для Xrumer — это тщательно отобранный список площадок для эффективного размещения ссылок и автоматического постинга. Переходите по запросу цена базы ссылок хрумер кворк. База подходит для SEO-продвижения, ускоряет наращивание ссылочной массы и экономит время. Актуальные и рабочие ресурсы, регулярное обновление и высокая проходимость обеспечивают максимальный результат.

  5. Привет всем Как повысить качество продукции за счет оборудования Плановое техническое обслуживание оборудования помогает контролировать износ и предотвращать неисправности. Это обеспечивает надежность и долговечность оборудования. Полная информация по ссылке – https://dagtechservice.ru/category/tehnicheskoe-obsluzhivanie/ реферат монтаж промышленного оборудования частые поломки промышленного оборудования договор обслуживания телеком оборудования комплексное обслуживание оборудования Дом – Технический сервис наладка технологического оборудования лекции Удачи и комфорта в жизни Как выбрать оборудо 35ffc69

  6. Free online games https://poki.com.az play without downloading or registering. A large collection of games across various genres: action puzzles racing and strategy. Easily access from any device.

  7. Arizona sports events oxu-az com az football transfers and live match results. Latest news statistics and reviews for fans and sports enthusiasts.

  8. Free online games https://1001-oyun.com.az the best browser games with no installation required. Huge selection of genres easy search and quick launch. Play anytime for free.

  9. I’m no longer sure the place you’re getting your info, but good topic.
    I needs to spend some time learning much more or working out more.

    Thanks for magnificent info I used to be searching for
    this information for my mission.

  10. Пробовал накрутку через дешёвые сервисы — толку не было. Статья помогла понять, почему. Оказывается, я крутил на сырой сайт (не проверил индексацию и позиции в топ-50). Автор даёт чёткий чек-лист перед стартом и объясняет, как проверить, доходят ли клики через Вебмастер. Рекомендую: https://teletype.in/@pfup/3mo6UGVvR2a

  11. доставка цветов москва курьером на дом недорого доставка цветов москва курьером на дом недорого .

  12. Hello there!

    Need a trustworthy Canadian gaming site?

    I recommend Spinmills — a great option for Canadian players: check this out

    Daily cashback with no wagering. Worth checking out.

    What do you think?

  13. Roblox Download https://delta-roblox.com.az Download the game learn about Roblox Studio features and learn about security settings. Play create your own worlds and protect your account. A complete guide to installing playing and using the platform safely.

  14. Выгодно купить кварцевый песок для пескоструйки – 100 очистка без забитых сопел Забудьте о засорах: очищайте металл в разы быстрее. Ваш аппарат скажет спасибо а результат поразит клиента. Купить кварцевый песок

  15. Ηi, і think that i saw you visited my website so i ⅽame to “return the favоr”.I am trying to
    find things to enhance my website!I supⲣose іts ok to use ѕome of yoyr ideas!!

    Also visit my web blⲟg – Wearable Technology

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>