Option Strict on by default in VB.NET

非 Y 不嫁゛ 提交于 2019-11-26 07:49:47

问题


Whenever I created a new VB.NET program I must go into the project\'s properties and set \'Option strict\' on. Can I do that once so it is a default for every time I create a new project?


回答1:


In Visual Studio, go menu Tools -> Options -> Projects and Solutions -> VB defaults -> Option Strict. Set it to "On".

Every time you create a new project, it will have Option Strict On by default.




回答2:


Check out Option Strict under menu Tools -> Options -> Projects and Solutions -> VB Defaults:




回答3:


In your Visual Studio, go to Tools > Options, open Projects and Solutions, and select VB Defaults.




回答4:


You can set that in the Visual Studio options, under Projects and Solutions and VB Defaults.



来源:https://stackoverflow.com/questions/5160669/option-strict-on-by-default-in-vb-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!