WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

Drop .Net Core 2.1 support

Open azchohfi opened this issue 3 years ago • 7 comments

Describe the bug

We should drop support for netcoreapp2.1. It is out of life, and our tests will start to fail on ADO since we don't manually install this framework.

azchohfi avatar Oct 12 '21 19:10 azchohfi

Hello azchohfi, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Oct 12 '21 19:10 ghost

This was on my ToDo list as well and likely the first thing I wanted to do in the .NCT 😄 Are the .NET Core 2.1 tests only in the .NET unit tests, or do those affect the UWP/WinUI projects too? If it's the former I can just take this after the split, otherwise happy to help with this with a PR for this repo if you're busy 😊

Sergio0694 avatar Oct 12 '21 20:10 Sergio0694

This affects the HighPerformance package, as well as the Notifications one. I'm mostly worried about the notifications, as we support older targets and need to keep them working: https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj#L4 I believe we only need to update to 3.1 and we should be good to go, but its better to keep this until 8.x (breaking change). Btw, I do not have the bandwidth to work on this, sorry.

azchohfi avatar Oct 12 '21 23:10 azchohfi

No worries! So if we're both busy right now and you think stripping .NET Core 2.1 from the Notifications package might be a bit tricky, here's an idea: we don't do anything for now, we wait for the .NET Community Toolkit split first, and then we'll each strip .NET Core 2.1 in our respective Toolkits when we have time. The .NCT stuff going away will mean you'll only have to deal with the single Notifications package when you have time to look into that (I'm also not familiar with that project myself), and I'll take care of removing .NET Core 2.1 from the .NET unit tests projects instead once the new repo is live. How does this sound? 🙂

Sergio0694 avatar Oct 12 '21 23:10 Sergio0694

Sounds great! Is there a ball park date for when do you think the NCT bits will be moved?

azchohfi avatar Oct 13 '21 00:10 azchohfi

Awesome! We should do that right after 7.1.1 is out, probably so sometime late next week or the week after that? 😄

Sergio0694 avatar Oct 13 '21 16:10 Sergio0694

@azchohfi I removed all .NET Core 2.1 targets from the .NET Community Toolkit (https://github.com/CommunityToolkit/dotnet/commit/941098338f31309495d4616a5c305aa12f9dd62d), and the entire repo has been migrated and setup now. Let me know if you need help with a PR to delete everything related to the .NCT. Then the only remaining place to remove .NET Core 2.1 from should just be that notification project we talked about 😊

Sergio0694 avatar Nov 11 '21 11:11 Sergio0694