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.

6,790 thoughts on “VB.NET and project imports

  1. Если вы любите кино то этот пост для вас тогда это то что нужно Бесплатные платформы для просмотра фильмов часто имеют удобное мобильное приложение. Это позволяет смотреть кино в дороге в очереди или на отдыхе. фильмы бесплатно онлайн Мобильность делает просмотр еще более доступным и комфортным. Наслаждайтесь кино где угодно. Ссылка на просмотр: — https://www.filmy-serialy-online-1.top фильмы смотреть онлайн hdлучшие тв-шоу смотретьонлайн сериалы бесплатно качество Хороших сериалов и отличного настроения

  2. I’m gone to say to my little brother, that he should also pay a visit this web
    site on regular basis to get updated from most up-to-date gossip.

  3. Кстати, если вас интересует Страница не найдена: что делать дальше?, посмотрите сюда.

    Смотрите сами:

    https://19media.ru

  4. Как структура сайта влияет на Продвижение сайтов?

  5. Marvelous what a web site it is This website provides helpful data to us keep it up. Big Bass Floats My Boat

  6. Доброго Как влияет качество монтажа на эксплуатацию Пуск оборудования после длительного простоя требует тщательной проверки всех систем. Это помогает избежать аварий и неисправностей. Полная информация по ссылке – https://dagtechservice.ru/services/ оборудование сервисного обслуживания автомобилей ремонт производственных линий сервисное обслуживание оборудования бассейна пуско наладка оборудования Контакты – Технический сервис программа наладка технологического оборудования Удачи и комфорта в жизни Как обучить специалистов по оборудованию 6bd1085

  7. Комплексное seo продвижение для B2B — в чём специфика?

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

  9. Hello, i think that i saw you visited my website thus i came to “return the favor”.I’m trying to find things to improve my web site!I suppose its ok to
    use a few of your ideas!!

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>