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

  1. Good afternoon Decode language mysterious roots containing interesting and valuable linguistic news and trace words back to their source see on the website for etymology databases Full information on the link – https://101flow.site All the best and development in business

  2. Fine way of explaining, and fastidious article to obtain facts on the
    topic of my presentation topic, which i am going to
    convey in school.

  3. I am really grateful to the holder of this web page who has
    shared this enormous article at at this place.

  4. My brother recommended I might like this blog. He was totally right.

    This post truly made my day. You can not imagine simply how
    much time I had spent for this information! Thanks!

  5. Today, I went to the beach with my kids. I found a sea shell
    and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She
    put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is entirely off topic
    but I had to tell someone!

  6. After going over a number of the blog articles on your web page, I
    seriously appreciate your way of writing a blog. I added it
    to my bookmark webpage list and will be checking back in the near future.
    Please check out my web site too and let me know what you think.

  7. When someone writes an post he/she retains the thought of a user in his/her mind that how a user can understand it.

    So that’s why this paragraph is perfect. Thanks!

  8. заказать кухню по индивидуальному заказу заказать кухню по индивидуальному заказу .

  9. кухни на заказ в спб от производителя кухни на заказ в спб от производителя .

  10. Good afternoon Unlock mysterious secrets that hold truly valuable and interesting knowledge for your future growth see on the website today for immediate access to hidden data Full information on the link – https://202fliks.site All the best and development in business

  11. мебель для кухни спб от производителя мебель для кухни спб от производителя .

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>