-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Warning fixes: spring wave #15747
Warning fixes: spring wave #15747
Conversation
You can test this PR using the following package version. |
<Compile Include="..\..\..\src\Avalonia.Base\Metadata\NullableAttributes.cs" Link="Compatibility\NullableAttributes.cs" /> | ||
<Compile Include="..\..\..\src\Avalonia.Base\Compatibility\TrimmingAttributes.cs" Link="Compatibility\TrimmingAttributes.cs" /> | ||
<Compile Include="..\..\..\src\Shared\IsExternalInit.cs" Link="Compatibility\IsExternalInit.cs" /> |
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.
We need to unify how these pollyfils are referenced. Somewhere it's part of Avalonia.Base + internals visible to, and somewhere it's a shared file.
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.
Not sure what's better. But shared file is more annoying when you already have internals visible to enabled.
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.
We can't really unify, as much as I'd like that.
As you mentioned, the InternalsVisibleTo
mandates that we use the types from Avalonia.Base
if we don't want spurious warnings for conflicting attributes (like the ones this PR fixes). But a few projects, such as Avalonia.Designer.HostApp
aren't dependent of Avalonia.Base
, so we have to use the shared files instead.
Should be resolved if/when we drop netstandard2.0
, hopefully before 2030 ;)
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.
You can test this PR using the following package version. |
It's spring, warnings again are blooming, now's the time for fixing!
Noteworthy changes:
Obsolete
attributes onValueStore
(with @grokys' approval).PThread
ifWasmEnableThreads
is true.