Global usings are used even if not supported #14434
Labels
bug
If an issue is a bug or a pull request a bug fix
dotnet
An issue or pull request related to .NET (6)
dotnet-pri0
.NET 6: required for stable release
Milestone
Steps to Reproduce
Install latest .NET SDK 6.0.3 + .NET MAUI 14 Preview workloads
Expected Behavior
Build success
Actual Behavior
Fails with:
The generated code contains this, which looks like a hack around supporting
nfloat
Environment
Click to expand
Build Logs
Example Project (If Possible)
Notes
You might want to ask why not just target v10? When building cross platform libraries and many of v10 features not being supported by older targets, we prefer lowering the language version enabled in the cross-platform class libraries, to reduce risk of code not compiling on certain targets.
Likely introduced by #14197
Workaround
Specify
<NoNFloatUsing>true</NoNFloatUsing>
in project file.The text was updated successfully, but these errors were encountered: