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

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

  2. Good afternoon Share consciousness mysterious theories with interesting and valuable philosophical debates and join the great discussion see on the website for debate forums Full information on the link – https://101flow.site All the best and development in business

  3. For those seeking an exceptional online gaming experience us.comhttps://maxispin.us.com/ stands out as a premier destination. At Maxispin Casino players can enjoy a vast array of pokies table games and other thrilling options all accessible in both demo and real-money modes. The casino offers attractive bonuses including free spins and a generous welcome offer along with cashback promotions and engaging tournaments. To ensure a seamless experience Maxispin provides various payment methods efficient withdrawal processes and reliable customer support through live chat. Security is a top priority with robust safety measures and a strong focus on responsible gambling tools. Players can easily navigate the site with detailed guides on account creation verification and payment methods. Whether youre interested in high RTP slots hold and win pokies or the latest slot releases Maxispin Casino delivers a user-friendly and secure platform. Explore their terms and conditions read reviews and discover why many consider Maxispin a legitimate and trustworthy choice in Australia. The website offers advanced tools for generating unique and engaging text content. Features of MaxiSpin.us.com By inputting their requirements users can receive personalized content in just a few minutes. Benefits of Using MaxiSpin.us.com Both individuals and small businesses can gain significant advantages by using MaxiSpin.us.com.

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>