dotnet / dotnet/project-system

Ignore 'Option Strict On' defined in option settings with .net 5 in VB.

Open
#7,708 6 comments 0 reactions 1 assignee Claimed by @melytc View on GitHub
Area-VisualBasic Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

_This issue has a corresponding [ticket on Developer Community](https://developercommunity.visualstudio.com/t/Ignore-Option-Strict-On-defined-in-opt/1535957). Please vote and comment there to make sure your voice is heard._

---
Hello,

With WPF and Winforms, using .net 5 and visual studio version 16.11.3, the Option Strict setting to On in the settings options is ignored.

It is necessary to add the instruction in the code.

Despite Option Strict On, there is no conversion error detected.

![image](https://user-images.githubusercontent.com/350947/138000133-c93ad5e9-0daa-4e95-93ae-4e68a765271d.png)

With the addition of the Option Strict On statement, the conversion error is detected.

![image](https://user-images.githubusercontent.com/350947/138000152-22866b30-186c-4601-971f-0cddf57e6c31.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.