简体   繁体   中英

CS1998 throws an error instead of a warning

Working on a new system at a new job with VS Professional 2015 w/Update 3 and CS1998: This async method lacks 'await' operators and will run synchronously is throwing an actual build error instead of a warning. On my other systems this is simply a build warning, NOT an error.

Is there a VS option somewhere where I can change this back to being a warning?

请参阅“项目属性”的“构建”选项卡中的“错误警告”字段。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM