-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unable to build Windows class libraries with dotnet build #5886
Comments
My PR fixes the issue as seen by human eyes, but there are some hidden issues in some areas. Reopening this and will PR more fixes from the WinUI team. |
Same stuff on GitHub Actions
|
Any workarounds? |
You need to set the following properties (we set them in maui): Library: <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<GenerateLibraryLayout>true</GenerateLibraryLayout> Apps: <WinUISDKReferences>false</WinUISDKReferences> The most important is We set some properties on maui because we know some specific values, but they may have ideas for general dotnet build support. CC @marb2000 |
@mattleibow to confirm, when this is fixed in the future we can remove these properties? |
Depends. The official fix right now with a non-Maui library is to set it. I cannot speak to whether the WinUI team actually wants these since EnablePreviewMsixTooling is a feature that you are enabling and it has different behaviour. However, I would expect that some of these should at least be set to valid values after setting EnablePreviewMsixTooling=True since you are basically opting into new things, so why keep the legacy, VS-only features? But, if you open an issue on the WindowsAppSDK repo I am sure they can provide more details as to the reasons h=behind the current defaults and the plans for any changes. |
Description
We added support for dotnet build, but it seems that libraries still have some issues.
Partial PR: #5875
Maui devops issue: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1520610
OS devops issue: https://microsoft.visualstudio.com/OS/_workitems/edit/38897015
Steps to Reproduce
Version with bug
Release Candidate 1
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
All
Did you find any workaround?
Use msbuild :(
Relevant log output
No response
The text was updated successfully, but these errors were encountered: