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

Publish to Windows error if using referenced Maui Class Library #13869

Closed
techscx opened this issue Mar 13, 2023 · 2 comments
Closed

Publish to Windows error if using referenced Maui Class Library #13869

techscx opened this issue Mar 13, 2023 · 2 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 t/bug Something isn't working

Comments

@techscx
Copy link

techscx commented Mar 13, 2023

Description

When creating a simple Maui App and adding and referencing a Maui Class Library the App cannot be published targeting windows:

"Improper project configuration: WindowsPackageType is set to None, but PublishAppxPackage is set to true."

The problem is confirmed with any available Visual Studio:
VS 2022 17.5.1, 17.6.0 Preview 1.0

Steps to Reproduce

  1. Create Maui App
  2. Create Maui Class Library
  3. Add Class Library to Maui App as Project Reference
  4. Publish to Windows

Link to public reproduction project repository

https://github.com/techscgh/MauiClassLibraryPublishError2023

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10, Windows 11

Did you find any workaround?

No response

Relevant log output

No response

@techscx techscx added the t/bug Something isn't working label Mar 13, 2023
@jsuarezruiz jsuarezruiz added platform/windows 🪟 area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) labels Mar 13, 2023
@mattleibow
Copy link
Member

Duplicate of #9547

@mattleibow mattleibow marked this as a duplicate of #9547 Mar 13, 2023
@techscx
Copy link
Author

techscx commented Mar 13, 2023

Duplicate of #9547

Thank you for the Workaround.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants