Replies: 8 comments
-
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
Beta Was this translation helpful? Give feedback.
-
Can repro this issue at Windows platform on the latest 17.11.0 Preview 2.0(8.0.70-ci.net8.24316.1&8.0.70-ci.net8.24314.1). |
Beta Was this translation helpful? Give feedback.
-
@MartyIX do you still see this on the net9 branch? |
Beta Was this translation helpful? Give feedback.
-
EnvironmentTested with dotnet Testcd src/Controls/samples/Controls.Sample.Sandbox
dotnet build
dotnet publish -f net9.0-windows10.0.19041 -c Release -p:PublishReadyToRun=true -p:WindowsPackageType=None
# Interestingly, I had to use `net9.0-windows10.0.19041` and not `net9.0-windows10.0.19041.0` (i.e. the trailing zero is missing) And it fails with:
When I ran with dotnet publish -f net9.0-windows10.0.19041 -c Release -p:PublishReadyToRun=false -p:WindowsPackageType=None the publish process finished. So the issue appears to be present even in .NET 9. |
Beta Was this translation helpful? Give feedback.
-
Did you try using a runtime identifier as the error states? |
Beta Was this translation helpful? Give feedback.
-
I checked out 0fae06d and tested with that. No RIDOriginally, the issue was reported for .NET 8, now .NET 9 is released, so just to recap:
reports the following error for me
With a RIDWhen I specify the
then I get the following errors:
Unrelated but I noticed that I'm not sure how it plays together with this. Footnotes
|
Beta Was this translation helpful? Give feedback.
-
You can't use the
Add this to the csproj: <PropertyGroup Condition="'$(RuntimeIdentifierOverride)' != ''">
<RuntimeIdentifier>$(RuntimeIdentifierOverride)</RuntimeIdentifier>
</PropertyGroup> and then set that property on the CLI:
|
Beta Was this translation helpful? Give feedback.
-
Oh dear, the I even had an issue, sigh: #17142 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I created a few PRs to improve performance for MAUI on Windows. The effect of my PRs are IMO affected by the fact that
PublishReadyToRun=True
cannot be set when compilingControls.Sample.Sandbox
MAUI project.Steps to Reproduce
Check out the latest
main
commit b182ffe and run:then:
and it reports
However,
PublishReadyToRun=False
works just fine:Link to public reproduction project repository
No response
Version with bug
Nightly / CI build (Please specify exact version)
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No.
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions