I really like the coding speed that VB.NET provides, but I don't like the possibility to forget to declare variable types, return types of functions, etc. and that is why in each class I use:
Option Explicit On
Option Strict On
Is there a way to define those two options on the project/solution level?
It is really tedious to copy those two options in each class...
We code with Visual Studio 2010 in .NET 4 Client Profile.
Yes, you can set these options for the entire project in your project's Properties:
You could also choose to specify these settings globally in the Visual Studio options (although this will only affect new projects, not existing ones):
Well, the obvious place is to look in the project options dialog, and lo and behold:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With