publish failed with PublishSingleFile=true #13290
Labels
area-publishing
Issues with the app packaging/publishing process (ipk/apk/msix/trimming)
external
platform/windows 🪟
t/bug
Something isn't working
Description
I created a app by using the default template and test if it can be packaged as a SingleFile by using PublishSingleFile=true. But i have trouble in publish command.
The command I used is
dotnet publish -c release -p:WindowsPackageType=None --sc -f net7.0-windows10.0.19041.0 -p:PublishSingleFile=true MauiDemo.csproj
output:
then i tried set PublishReadyToRun to false as the output recommend and publish command was executed successfully, but the exe crashed.
event:
Steps to Reproduce
Link to public reproduction project repository
https://github.com/zhangchaoza/MauiReproduction
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
windows sdk 10.0.19041.0
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: