Visual Studio macro to read compilation errors and fix implicit conversions automatically in VB.NET
Posted
by eckesicle
on Stack Overflow
See other posts from Stack Overflow
or by eckesicle
Published on 2010-06-03T12:33:37Z
Indexed on
2010/06/03
13:54 UTC
Read the original article
Hit count: 488
I am converting a large project in VB.NET that is using Option Strict Off into Option Strict On
Naturally I am running into the same compilation error over and over.
Strict On does not allow implicit conversion from Object to String/Integer/Double
Is it possible to to access the compilation errors with a macro and automatically append .ToString() to the erroneous implicit conversion.
Essentially my question is a duplicate off http://stackoverflow.com/questions/2532340/tools-to-convert-option-strict-off-code-into-option-strict-on but that question had no answers.
Cheers.
© Stack Overflow or respective owner