-
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
Use slngen and remove UWP target from WinUI packages #350
Use slngen and remove UWP target from WinUI packages #350
Conversation
a02f230
to
5b7b458
Compare
Write the UWP test head...
We wouldn't need to build or run those tests on the WinUI 3 build anymore (they're run on WinUI 2 one anyway). 🤔 |
Hope this time works. VS may want to prompt to save sln file, so need to investigate later or clean-up this approach if we end up doing this... Just trying to get bits to see if resolve issue at first at least... |
… 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
…olution Removes calling UseUnoWinUI script from GenerateAllSolution as we call that separately on the CI anyway Tested generated solution still loads in VS 2022 without issue Simplified step for running tests
61b444a
to
9a9131e
Compare
Using this to test out and validate changes for dotnet/runtime#257 as well now. |
…owerShell script (if provided)
…lternate build pipelines
@Arlodotexe very weird, looks like It clearly worked on Windows: Wonder if it could be something like this issue? dotnet/sdk#13799 Will comment there and see. |
Updated PR description, think we're basically ready to go. Everything looks good in the CI. |
Checked everything still working with Codespaces as well. Haven't heard back on platform thread, will follow-up on Monday, but think we can move forward still as we know this resolves the issue. |
It does not ring a bell, no. It's been generally reliable for me, are you still having an issue? |
@jeromelaban saw it as an issue, added all of what I saw in a comment here: dotnet/sdk#13799 (comment) (Looks like slngen has updated for ARM64, will push an update to the PR to check-out.) |
@Arlodotexe slngen was just updated, so this PR should be all set without further work. Discussed with @azchohfi too that we only need ARM64 support and shouldn't need ARM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and everything works as expected. Before closing, we should remove the common/Toolkit.Labs.All.sln.template file since it's no longer being used.
Thanks @Arlodotexe, good catch! Have pushed a commit to remove the file. Will make sure everything runs clean again and then merge. |
Well now I'm extra confused... it says the .NET SDK is installed, but then it can't find it??? @jeromelaban think I should open an issue on the https://github.com/actions/runner-images repo for this? I don't really understand why it's failing to find the SDK in one tool, when the install tool finds it fine... Any ideas? Like it just ran fine in the previous commit 4601457, and nothing that effects it should have changed. |
76110fa
to
a75dfc8
Compare
a75dfc8
to
a47d170
Compare
As far as we can tell when this occurs it doesn't seem to be hitting The Explicitly listed the sdks again, and we can clearly see it's just confused: Which makes no sense. Not sure where to follow-up from here. Also, not sure why this just happened to start occurring in the last day or so, as we did have clean builds before. It seems to consistently fails on Linux in the CI (Ubuntu), but works in Codespaces (Debian). It seems intermittent on if it fails on Windows... |
So, pretty sure this issue is specific to the I removed our {
"sdk": {
"version": "6.0.405",
"rollForward": "latestFeature"
}, And then it picked up the .NET 7 install and ran fine. I added it back, but without the {
"sdk": {
"version": "6.0.405"
}, And then it properly picked up the request and installed 6.0.405 version of .NET... So, it seems like |
05f96ad
to
ec27223
Compare
Filed dotnet/sdk#30361 but think it's related to not using |
ec27223
to
1aa2235
Compare
…ui-package-fix Use slngen and remove UWP target from WinUI packages
Fixes dotnet/runtime#262
Fixes dotnet/runtime#257
With this change UWP developers will have to use the
CommunityToolkit.Labs.Uwp.*
packages and WindowsAppSDK developers will need to useCommunityToolkit.Labs.WinUI
packages (as we've been communicating already, so no change there).We thought we may be able to ease transition by including both by still including UWP bits in the WinUI packages, but dotnet/runtime#262 may indicate that breaks when building a Packaged Windows App SDK Desktop project.
This PR removes the UWP bits from the WinUI NuGet packages (they remain of course in the UWP NuGet packages).
It also:
slngen
Fixing Dragon4 to take unbiased rounding into account. dotnet/runtime#257 to build the solution file and be able to better selectively include sample/test projects for UWP/WinAppSDK as needed for the changes to fix Remove references to gender dotnet/runtime#262.Get-Help
in PowerShell and better document what they do and how they work)Before:
After (-detailed will show parameter help):
Opening this
draftPR to test while we await more info on expected behaviors from the platform team.