Microsoft Visual Studio 2017: Option Strict On Disallows…

Problem 1: You open a Visual Studio VB solution / project and you have a bunch of red squiggles that tell you, “Option Strict On Disallows…” something or other.

Problem 2: You double-click My Project and click the Compile tab to check the Option Strict option and it isn’t even set to ‘On.’

Fix: Set Option Strict to ‘On’ and close the My Project tab. Reopen the tab, set Option Strict to ‘Off.’

Red squiggles should go away.

Comments are closed.