-
Notifications
You must be signed in to change notification settings - Fork 522
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
Can't build with NativeAOT on Windows #21808
Comments
This is where it fails, which obviously won't work on Windows: The logic seems to want to verify that which is then used to add which is never used again... There seems to be few possible solutions here:
CC @ivanpovazan is this something you can help with? |
Yes, definitely! :) Was this found internally or by a customer? Sounds like we will have to service the fix. |
By a customer: #21795 (comment) |
@rolfbjarne regarding:
How would |
We have our own targets that compute it. |
Just an update:
Looking into it. |
The way we've solved this in the past is to create a task of our own that subclasses the original task, and which provides the necessary remoting. See our ILLink task for example: https://github.com/dotnet/macios/blob/main/msbuild/Xamarin.MacDev.Tasks/Tasks/ILLink.cs macios/msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Common.After.targets Lines 342 to 344 in bd02649
|
Apple platform
iOS
Framework version
net9.0-*
Affected platform version
.NET 9
Description
Publishing a project on Windows with PublishAot=true yields:
Steps to Reproduce
There's a test case in this PR: #21800
Build logs
The binlog contains secrets, so I can provide it upon request (or re-create one).
The target that fails:
The text was updated successfully, but these errors were encountered: