-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix nullable annotations for Preferences
#6013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nullable annotations for Preferences
#6013
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build failing
"D:\a\_work\1\s\Microsoft.Maui.BuildTasks.slnf" (Build target) (1:2) ->
"D:\a\_work\1\s\src\Core\src\Core.csproj" (default target) (2:40) ->
"D:\a\_work\1\s\src\Core\src\Core.csproj" (Build target) (2:43) ->
"D:\a\_work\1\s\src\Essentials\src\Essentials.csproj" (default target) (8:55) ->
(CoreCompile target) ->
D:\a\_work\1\s\src\Essentials\src\Preferences\Preferences.shared.cs(38,12): error CS0246: The type or namespace name 'NotNullIfNotNullAttribute' could not be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Essentials\src\Essentials.csproj]
D:\a\_work\1\s\src\Essentials\src\Preferences\Preferences.shared.cs(38,12): error CS0246: The type or namespace name 'NotNullIfNotNull' could not be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Essentials\src\Essentials.csproj]
D:\a\_work\1\s\src\Essentials\src\Preferences\Preferences.shared.cs(101,12): error CS0246: The type or namespace name 'NotNullIfNotNullAttribute' could not be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Essentials\src\Essentials.csproj]
D:\a\_work\1\s\src\Essentials\src\Preferences\Preferences.shared.cs(101,12): error CS0246: The type or namespace name 'NotNullIfNotNull' could not be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Essentials\src\Essentials.csproj]
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new nuget is causing issues and probably not worth it at all. netstandard is basically just there for the IDE tools, and they don't need all these things. Simplest is just to condition it out for the obsolete platforms.
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Description of Change
Setting and Getting
nullis totally valid (I'm using this functionality in my app), so existing annotations are incorrect.Updated annotations to reflect underlying logic.
Issues Fixed
Fixes #
Do I need to create an issue for such a small change?