-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
.NET 5 Preview 8 ReadyToRunCompiler task failure #41623
Comments
cc @mangod9 |
Hi @isaacrlevin, is this a regression in p8 ? Adding @AntonLapounov since he has worked on PublishReadyToRun recently |
It worked in Preview 7, so unless I am doing something wrong, it is a regression |
@isaacrlevin Do you hit the same issue with a new WPF project ("dotnet new wpf")? |
I do not, this happens when I run a build in Azure DevOps, it works locally and I have no idea why |
@isaacrlevin Thank you for trying that. Did you use the same SDK version (5.0.100-preview.8.20417.9) locally? Or was it a different version? |
Same SDK. Here is the solution that is not working Highlighted task that fails More than happy to modify anything to get to work |
I have reproduced the issue. The extra |
Is the fix to remove one include of |
Indeed, removing The old version of
which conflicts with the new @isaacrlevin Please either remove references to |
@clairernovotny FYI :) |
If you use "net5.0-windows10.0.19041" you opt-in adding Microsoft.Windows.SDK.Net.Ref which is expected. Where is the other winrt.runtime.dll comes from? |
microsoft.windows.cswinrt should not be used at the same time. Try remove the reference to that package |
I am attempting to publish a .NET 5 P8 WPF project and get the following error
Seems that a particular .dll is being passed twice for whatever reason. Here is the command I am running
And the contents of the publish file
If I set PublishReadyToRun to false, publish works as expected. Can provide my .props or .csproj if needed
The text was updated successfully, but these errors were encountered: