I have to take over a project written in vb.net, which contains more than 400k lines of code written in option strict off mode. I want to build it under option strict on first before I do anything else -- which maybe converting it into C#. I found there's thousands of lines of code raises compilation error, mostly are about implicit type casts.
Is there any tool would help to make it compile under option strict on mode if I don't want to correct every single line manually? Because it's really painful to add CStr/CInt invocation into every line of Code myself.
So you want to both use Option Strict and to not-use it at the same time?
I'll tell you what: first turn Option Strict to On, then under Warning Configurations change the "Implicit Conversion" condition from "Error" to "Warning" (or "None"). You will then see that the configuration says: Option Strict - "Custom".
But don't fool yourself: this custom setup isn't Strict, as it allows Implicit things to take place. You need to ask yourself: "Why do i want to compile this under option Strict?".