You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a Xamarin iOS project on a new computer with a fresh install of Visual Studio for Mac and MSBuild is treating warnings as errors, even though the setting to treat them as errors is turned off.
Also I tried properties like: TreatWarningsAsErrors and WarningsNotAsErrors but they don't have any effect.
When I move WarningLevel from 4 to 0 I'm able to build again.
The same code works on my older MacBook with the same msbuild version without problems. It shows warnings as warnings and not as errors.
Is there some global setting somewhere outside of the project? Either in the solution or global settings that turns warnings into errors?
Microsoft (R) Build Engine version 16.10.1 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to build a Xamarin iOS project on a new computer with a fresh install of Visual Studio for Mac and MSBuild is treating warnings as errors, even though the setting to treat them as errors is turned off.
Also I tried properties like:
TreatWarningsAsErrorsandWarningsNotAsErrorsbut they don't have any effect.When I move
WarningLevelfrom4to0I'm able to build again.The same code works on my older MacBook with the same msbuild version without problems. It shows warnings as warnings and not as errors.
Is there some global setting somewhere outside of the project? Either in the solution or global settings that turns warnings into errors?
Beta Was this translation helpful? Give feedback.
All reactions