none
Declarations Require 'As' Clause Warnings difference between VS2010 and VS2015

    Question

  • I have a vbproj with setting Option Strict On and one of the class has declared Option Strict Off. It compilable in VS2015 whereas the same project is showing error Declarations Require 'As' Clause Warnings in VS2010. How to make VS2015 to detect this?
    Friday, August 5, 2016 3:13 AM

Answers

  • If you cannot set Option Strict On for the whole project, then try this Project property: Compile, Warning Configurations list, “Implicit type; object assumed”. Set it to “Warning”.

    Otherwise show an example of the code and the full text of the warning message, including the number.


    Friday, August 5, 2016 5:16 AM