Skip to content
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

PublishSingleFile + no WindowsAppSDKSelfContained is broken #9658

Open
na1307 opened this issue May 16, 2024 · 4 comments
Open

PublishSingleFile + no WindowsAppSDKSelfContained is broken #9658

na1307 opened this issue May 16, 2024 · 4 comments
Labels
area-ProjectSystem team-Markup Issue for the Markup team

Comments

@na1307
Copy link

na1307 commented May 16, 2024

Describe the bug

Apps that use PublishSingleFile and do not use WindowsAppSDKSelfContained fail with a file not found and xaml parse failed error.

Steps to reproduce the bug

  1. Publish and run this solution.

Expected behavior

The app should run normally.

Screenshots

화면 캡처 2024-05-16 224250

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Unpackaged

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

@Gaoyifei1011
Copy link

Gaoyifei1011 commented May 17, 2024

WindowsAppSDKSingleFileVerifyConfiguration = false

Since the Windowsappsdk updated the singlefile rules from versions 1.4 to 1.5, you can try adding this property to your csproj to disable the new single-file packaging rules

reference link:https://github.com/Gaoyifei1011/GetStoreApp/blob/main/GetStoreApp/GetStoreApp.csproj

@na1307
Copy link
Author

na1307 commented May 18, 2024

Strangely, even if I publish this project, I have problems. (Run Publish.cmd located at the root.) I don't know if this is a problem with my environment.

@na1307
Copy link
Author

na1307 commented May 20, 2024

Strangely, even if I publish this project, I have problems. (Run Publish.cmd located at the root.) I don't know if this is a problem with my environment.

Strangely, resources.pri seems to be missing when publish with --no-build.

@codendone codendone transferred this issue from microsoft/WindowsAppSDK May 23, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 23, 2024
@codendone codendone added area-ProjectSystem team-Markup Issue for the Markup team and removed needs-triage Issue needs to be triaged by the area owners labels May 23, 2024
Copy link

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. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ProjectSystem team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

3 participants