如何关闭“警告错误".在Visual Studio for Mac中 [英] how to turn off "warning treaded as error" in visual studio for mac

查看:88
本文介绍了如何关闭“警告错误".在Visual Studio for Mac中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Visual Studio for Mac时,出现以下错误,并且我想关闭此功能. Solution Explorer>中没有此类选项.选项>构建

I have the following error when I use the visual studio for mac, and I want to turn off this feature. There is no such option in Solution Explorer > Options > Builds

.../Serialization.cs(27,27):错误CS0219:错误警告:已分配变量xmlBuildOption,但从未使用过其值(CS0219)(FoundationBase)

.../Serialization.cs(27,27): Error CS0219: Warning as Error: The variable `xmlBuildOption' is assigned but its value is never used (CS0219) (FoundationBase)

推荐答案

项目选项 / Build /编译器

该属性页面上的最后一项是将警告视为错误"

Last item on that property page is "Treat warning as errors"

这篇关于如何关闭“警告错误".在Visual Studio for Mac中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆