Skip to content

PublishSingleFile fail to work when you have a WinUI3 Class Lib #9611

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

Closed
ReneeGA2020 opened this issue May 3, 2024 · 3 comments
Closed

PublishSingleFile fail to work when you have a WinUI3 Class Lib #9611

ReneeGA2020 opened this issue May 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ReneeGA2020
Copy link

ReneeGA2020 commented May 3, 2024

Describe the bug

When PublishSingleFile is on, the build process will try to find the lib dll in the wrong location

Steps to reproduce the bug

  1. Create a new winUI3 app
  2. Add a c# winUI3 Class Lib
  3. Add dependency
  4. Build with win-x64 + PublishSingleFile + WindowsAppSDKSelfContained + WindowsPackageType = None + SelfContained
    ->
    Error CS0006: Metadata file 'C:\Users\xxxxx\source\repos\App8\ClassLibrary1\bin\Release\net8.0-windows10.0.19041.0\win-x64\ClassLibrary1.dll' could not be found

Test project:
App8.zip

Expected behavior

Build successfully

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000

Windows version

No response

Additional context

ClassLibrary1.dll can actually be found in ClassLibrary1\bin\Release\net8.0-windows10.0.19041.0\ClassLibrary1.dll instead of 'ClassLibrary1\bin\Release\net8.0-windows10.0.19041.0\ win-x64\ClassLibrary1.dll'

@ReneeGA2020 ReneeGA2020 added the bug Something isn't working label May 3, 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 3, 2024
Copy link

github-actions bot commented May 3, 2024

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.

@ghost1372
Copy link
Contributor

i think you should report it in WASDK repo
https://github.com/microsoft/windowsappsdk

@ReneeGA2020
Copy link
Author

ok

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants