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.

2,437 thoughts on “VB.NET and project imports

  1. I really like what you guys are usually up too. This sort of clever work and exposure!
    Keep up the great works guys I’ve added you guys to our
    blogroll.

  2. Found a bride? proposal photographer in Barcelona romantic scenarios beautiful locations photo shoots decor and surprises for the perfect declaration of love. Make your engagement in Barcelona an unforgettable moment in your story.

  3. Found a bride? proposal packages in Barcelona romantic scenarios beautiful locations photo shoots decor and surprises for the perfect declaration of love. Make your engagement in Barcelona an unforgettable moment in your story.

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

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

  6. Ищешь кран? кран шаровой приварной для трубопроводов различного назначения. Надежная запорная арматура для систем водоснабжения отопления газа и промышленных магистралей. Высокая герметичность долговечность и устойчивость к нагрузкам.

  7. Нужен юрист? https://arbitrazhnyy-yurist.ru представительство в арбитражном суде защита интересов бизнеса взыскание задолженности споры по договорам и сопровождение судебных процессов для компаний и предпринимателей.

  8. Ищешь кран? кран шаровый приварной для трубопроводов различного назначения. Надежная запорная арматура для систем водоснабжения отопления газа и промышленных магистралей. Высокая герметичность долговечность и устойчивость к нагрузкам.

  9. Нужен юрист? защита интересов в арбитражном суде представительство в арбитражном суде защита интересов бизнеса взыскание задолженности споры по договорам и сопровождение судебных процессов для компаний и предпринимателей.

  10. Found a bride? proposal packages in Barcelona romantic scenarios beautiful locations photo shoots decor and surprises for the perfect declaration of love. Make your engagement in Barcelona an unforgettable moment in your story.

  11. We stumbled over here from a different web address
    and thought I may as well check things out. I like what I see so i am just following you.
    Look forward to looking over your web page for a second time.

  12. Проблемы с застройщиком? взыскание неустойки с застройщика по дду помощь юриста по долевому строительству расчет неустойки подготовка претензии и подача иска в суд. Защитим права дольщиков и поможем получить компенсацию.

  13. Нужен юрист? услуги юриста арбитражный дело представительство в арбитражном суде защита интересов бизнеса взыскание задолженности споры по договорам и сопровождение судебных процессов для компаний и предпринимателей.

  14. Ищешь кран? шаровой кран под приварку для трубопроводов различного назначения. Надежная запорная арматура для систем водоснабжения отопления газа и промышленных магистралей. Высокая герметичность долговечность и устойчивость к нагрузкам.

  15. Hello Decode rent mysterious leases containing interesting and valuable legal news now and sign with confidence see on the website for lease guides Full information on the link – https://33capy.site All the best and development in business

  16. Found a bride? proposal in Barcelona romantic scenarios beautiful locations photo shoots decor and surprises for the perfect declaration of love. Make your engagement in Barcelona an unforgettable moment in your story.

  17. Found a bride? marriage proposal in Barcelona romantic scenarios beautiful locations photo shoots decor and surprises for the perfect declaration of love. Make your engagement in Barcelona an unforgettable moment in your story.

  18. Good morning Curate value mysterious systems with interesting and valuable economic impact and build wealth on solid foundations see on the website for value investing Full information on the link – https://33capy.site All the best and development in business

  19. Проблемы с застройщиком? дду взыскать помощь юриста по долевому строительству расчет неустойки подготовка претензии и подача иска в суд. Защитим права дольщиков и поможем получить компенсацию.

  20. Проблемы с застройщиком? юрист по дду помощь юриста по долевому строительству расчет неустойки подготовка претензии и подача иска в суд. Защитим права дольщиков и поможем получить компенсацию.

  21. Нужен юрист? сайт арбитражных юристов представительство в арбитражном суде защита интересов бизнеса взыскание задолженности споры по договорам и сопровождение судебных процессов для компаний и предпринимателей.

  22. Нужен юрист? судебная защита в арбитражном суде представительство в арбитражном суде защита интересов бизнеса взыскание задолженности споры по договорам и сопровождение судебных процессов для компаний и предпринимателей.

  23. Ищешь кран? шаровой кран под приварку для трубопроводов различного назначения. Надежная запорная арматура для систем водоснабжения отопления газа и промышленных магистралей. Высокая герметичность долговечность и устойчивость к нагрузкам.

  24. Ищешь кран? краны под сварку для трубопроводов различного назначения. Надежная запорная арматура для систем водоснабжения отопления газа и промышленных магистралей. Высокая герметичность долговечность и устойчивость к нагрузкам.

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>