-
Notifications
You must be signed in to change notification settings - Fork 51
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 use in a Packaged WinUI 3 Desktop project #262
Comments
@Arlodotexe we tested this, are the packages in the feed just out-of-date? I know we ran into issues as #211 hasn't been merged, and the intent was for that to bump and regenerate the packages. @nxtn-staged were you using a specific component from the feed (which package)? Removing the TFM just means it's not including the UWP version at all. |
Hi @michael-hawker, I've tried both a |
@michael-hawker @niels9001 |
@Arlodotexe @michael-hawker Able to reproduce this.. seems to be happening for all Labs packages, so not only SettingsControls. 7.x packages work fine. Repro here: https://github.com/niels9001/LabsErrorRepro |
Was able to build on the command line with:
In the binlog it clearly shows the DoubleWrite occuring when copying output: I looked at the Windows App SDK package and noticed they have a UAP lib folder here: I wonder if a packaged app registers as a UAP target framework, and therefore it's picking up the UWP dependency from our NuGet package? Easiest solution may just be to remove the UAP target from the WinUI based NuGet packages anyway...? I'm going to follow-up with the Windows App SDK team to see if this hypothesis is correct, and if so, I can easily update our build CI process with our existing script helpers. |
… packages Adds a 'all-uwp' target to UseTargetFrameworks.ps1 Adds better documentation to UseTargetFrameworks.ps1 Conditionally selects the set of platforms to build for in the CI based on if running the UWP or WinUI package job
… packages Adds a 'all-uwp' target to UseTargetFrameworks.ps1 Adds better documentation to UseTargetFrameworks.ps1 Conditionally selects the set of platforms to build for in the CI based on if running the UWP or WinUI package job
Alright, I built things locally with what I was fiddling with in #350, but that requires more finesse to make that a solid PR in the future (better sln gen tooling for us in labs). I have confirmed with a locally built NuGet package that doesn't contain the UWP TFM: That the packaged desktop app can now run fine without the old WinUI 2 dll being copied over. (Accidently ran the unpackaged head at first and got the same error, so was confused at first...oops.) Still waiting to hear back from platform on expected behavior but seems like this is most likely the path for us. Ideally, with this path we:
Think that's everything? |
… packages Adds a 'all-uwp' target to UseTargetFrameworks.ps1 Adds better documentation to UseTargetFrameworks.ps1 Conditionally selects the set of platforms to build for in the CI based on if running the UWP or WinUI package job
@niels9001 we didn't re-rev the packages, so we need to do that and ship new versions of them all. Want to open a new PR to just rev the versions of all experiments in the repo? That should hopefully fix it. |
New WinUI packages should be shipped to the Labs feed, so hopefully this is resolved now. 🤞 |
… packages Adds a 'all-uwp' target to UseTargetFrameworks.ps1 Adds better documentation to UseTargetFrameworks.ps1 Conditionally selects the set of platforms to build for in the CI based on if running the UWP or WinUI package job
Describe the bug
When used in a WinUI 3 in Desktop project, the Microsoft.UI.Xaml 2.7.0 dependency is picked up so the app is unable to load the correct version of Microsoft.UI.Xaml.dll.
Labs-Windows/common/Labs.MultiTarget.props
Line 32 in 97104bd
I can get around this by removing the UWP TFM.
Labs-Windows/common/Labs.MultiTarget.props
Line 11 in 97104bd
Steps to reproduce
Expected behavior
None.
Screenshots
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
Preview
Visual Studio Build Number
No response
Device form factor
Desktop
Additional context
No response
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: