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
Csc invoked in XamlPrecompile doesn't get Nullable passed, and results in warning for NRT disabled when the project file has <Nullable>enable</Nullable>.
Issue Description
Csc invoked in XamlPrecompile doesn't get Nullable passed, and results in warning for NRT disabled when the project file has
<Nullable>enable</Nullable>
.Root cause of dotnet/roslyn#46420 .
Steps to Reproduce
<Nullable>enable</Nullable>
in project file.string?
field inApp
.Expected Behavior
Build without warning.
Actual Behavior
The IDE reports no warning. Build output reports warning CS8632: nullable reference types can only be used under
#nullable enable
.Analysis
https://github.com/dotnet/roslyn/blob/4f1711c578fd260221f968696ab07b125581b9e1/src/Compilers/Core/MSBuildTask/Microsoft.CSharp.Core.targets#L113
The
<Nullable>
property is missing inMicrosoft.CSharp.CurrentVersion.targets
:msbuild/src/Tasks/Microsoft.CSharp.CurrentVersion.targets
Lines 277 to 281 in ec6ed83
Versions & Configurations
Visual Studio 16.8 - 16.9 Preview 3
Attach a binlog
(Not necessary I think)
The text was updated successfully, but these errors were encountered: