-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
NETSDK1204 error during dotnet clean on macOS when AoT enabled #36960
Comments
@martincostello The project is targeting net7.0 which did not support PublishAot for osx-x64. The .NET 8 SDK has improved error handling for unsupported scenarios. Would you be able to update the project to targcet net8.0? |
I'm quite confused because we've updated our SDK to 8.0 and added |
I'm looking at the TFM of the test project in the commit you shared: App-vNext/Polly@58c807e#diff-a9aede301b3d3343182c1aac4a69b05e602be40e498b5295ad94735ea344f70eR8 |
Ah. That project was added subsequent to the initial .NET 8 PR being opened so it must have missed our 7.0 find and replace sweep 🤦🏻♂️ |
Describe the bug
Running
dotnet clean
as part of the Polly CI fails on macOS whenPublishAot=true
is specified in a project file.To Reproduce
Run
build.ps1
on macOS after cloning this commit: App-vNext/Polly@58c807eI haven't been able to reproduce this in a simpler project: martincostello/dotnet-8-samples#10
I also don't have access to a macOS computer (I have a Windows laptop), so I can't test this out locally to try and get a more minimal repro.
Exceptions (if any)
Workflow error logs from App-vNext/Polly#1800:
Further technical details
.NET 8.1.00 SDK running on GitHub Action's
macos-latest
runner.The text was updated successfully, but these errors were encountered: