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

Temp - Remove 'native' target for Notifications package to unblock CI #3570

Merged
merged 2 commits into from
Nov 20, 2020

Conversation

michael-hawker
Copy link
Member

Fixes #3564

Remove the 'native' target framework that is causing issues on VS 16.8 for now until a long-term solution can be found.

Current theory is 16.8 broke the workaround we were using to address this issue: NuGet/Home#5154

FYI @andrewleader @azchohfi

@ghost
Copy link

ghost commented Nov 20, 2020

Thanks michael-hawker for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from azchohfi and Kyaa-dost November 20, 2020 01:01
@ghost ghost added the bug 🐛 An unexpected issue that highlights incorrect behavior label Nov 20, 2020
@michael-hawker
Copy link
Member Author

@azchohfi looks like the Unit Test for the Notifications is failing to build. It's expecting the winmd output for one section of the tests.

We just need to remove the UnitTests.Notifications.WinRT.csproj file from the solution to prevent it building right?

@andrewleader
Copy link
Contributor

@michael-hawker I'm okay with removing the WinRT unit test project from the solution for now while we get this figured out.

@michael-hawker
Copy link
Member Author

Thanks @andrewleader, yeah I'll leave the code there in place, but just remove the project from the solution. Let me fix that now.

@michael-hawker
Copy link
Member Author

@azchohfi @Kyaa-dost @RosarioPulella looks like we're building again! 🎉🎉🎉

Anyone up for a quick review to audit me?

Then @Sergio0694 we should be able to add the multi-targets for .NET 5 back to those 2-3 PRs, eh?

@azchohfi would it be easy to backport the .NET 5 targeting you did for this Notifications package as well so the next 7.0.0 preview can support .NET 5 as well? (Or at least point @andrewleader to your change commit?)

@azchohfi
Copy link
Contributor

You didn't have to remove it from the Solution, but only disable it from the Release/AnyCPU build.
There is not a single commit on that file that did that, since there were many merges later, but this is the file:
https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/winui/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj

@michael-hawker
Copy link
Member Author

Thanks @azchohfi, I really wish there was an easier way to configure all that stuff, the VS interface is a mess and the solution file is unreadable. ☹ (Maybe a good UWP sample app for the Toolkit to make a thing that loads a SLN and can easily just muck with all that... 🤔)

I wasn't sure if folks locally trying to run the test suite would run into issues as well, so I figured it was a bit safer to just remove it entirely out of view for now until such time we resolve the issue and can just revert the one commit I did for that...

Thoughts?

@Rosuavio
Copy link
Contributor

Not sure if you are still working on it, but when I build all in VS I get two types of errors.

error CS0006: Metadata file 'WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.UI.Controls.Markdown\bin\Debug\uap10.0.17763\Microsoft.Toolkit.Uwp.UI.Controls.Markdown.dll' could not be found
And
WindowsCommunityToolkit\UnitTests\UnitTests.XamlIslands.UWPApp\XamlIslandsTest_Gaze.cs(24,19,24,33): error CS1929: 'DispatcherQueue' does not contain a definition for 'ExecuteOnUIThreadAsync' and the best extension method overload 'DispatcherHelper.ExecuteOnUIThreadAsync(CoreApplicationView, Action, CoreDispatcherPriority)' requires a receiver of type 'CoreApplicationView'

@Sergio0694
Copy link
Member

@RosarioPulella Is that branch you're working on up to date? I'm pretty sure I removed ExecuteOnUIThreadAsync in #3498 🤔

@michael-hawker
Copy link
Member Author

@RosarioPulella everything's building in the CI here with this fix, so sounds like you need to clean and update whatever branch you're on.

@azchohfi
Copy link
Contributor

I don't think we build or run the Xaml Islands tests on the CI, so it might be broken with the change in #3498.

@Sergio0694
Copy link
Member

Oof, so it seems like we might've missed some refactoring to do in #3498?
To be clear, that PR only had some renamings for the most part, so hopefully a simple replace all should fix that 😅

@Kyaa-dost
Copy link
Contributor

Thanks, @michael-hawker! Building like a charm 🚀 🚀

@michael-hawker michael-hawker merged commit 5129d2c into master Nov 20, 2020
@delete-merged-branch delete-merged-branch bot deleted the michael-hawker-patch-1 branch November 20, 2020 22:25
@michael-hawker michael-hawker added this to the 7.0 milestone Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't build on VS 2019 16.8
6 participants