-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Nullable annotations for projects using XamlX #15796
Conversation
c455199
to
6d2fa44
Compare
Apparently hitting a compiler bug regarding local functions and nullability - I can't reproduce locally and there's no warning either in XamlX pipelines. I'm updating the SDK here to see if that solves it. Edit: it does. |
And now hitting a bug in ILRepack! See Gillibald/il-repack#1 |
@MrJul could it be that ILRepack bug was fixed in the upstream? https://github.com/gluck/il-repack |
Indeed, these changes are similar to mine: Thanks for letting me know! We should probably discard the fork and use the new official version. |
5719bee
to
3f6eb6a
Compare
Note: ILRepack only supported .NET Framework, so I started porting it to .NET 8 a while back. While the projects compiled, I didn't have the time to update the custom NuGet pack targets yet, which was necessary to open a valid PR. Meanwhile, ILRepack got another PR adding I've updated this PR to use the tool. Assemblies are now merging without errors. |
3f6eb6a
to
571b263
Compare
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
What does the pull request do?
This PR enables nullable reference types in projects using XamlX:
Build.Tasks
Designer.HostApp
Generators
Markup.Xaml.Loader
Depends on kekekeks/XamlX#121
Notes
The
Generators
project directly uses<Nullable>enable</Nullable>
instead of includingNullableEnable.props
. This props file disables nullable warnings fornetstandard2.0
as they're usually handled by thenet8.0
build, which isn't targeted by this project.Several methods in
RoslynTypeSystem
now throwNotSupportedException
instead of returningnull
, to match the other implementations. These methods are normally not called by the name generator (or they would have failed with aNullReferenceException
before).