This is a problem I've encountered before but have never found a satisfactory solution. I'm taking a Pluralsight course which came out 2 years ago. Thus, it was written using .NET 8, which was the latest, at that time. I'm trying to upgrade it to .NET 10 and have run into more and more problems. The Visual Studio solution is comprised of 9 VS projects. I thought it would be a simple task of editing the .csproj files and replacing .NET8 with .NET10. Then upgrade the NuGet packages. Initially I had 1 error. The upgrades I did, weren't working, so I thought I would bring GitHub Copilot in to help me with this. I decided to leave it in Ask mode (perhaps this is a part of my problem, I don't know). Under .NET 8 the original app included the NuGet package Microsoft.OpenApi.Models. Under .NET 10, it complains and says there's no Models in Microsoftr.OpenApi. I started with 1 error, which then went to 9 errors, and now I'm at 29 errors. I'm thinking that GitHub Copilot is just chasing after rabbits and going crazy. I think I will make a note of the initial changes I made in this child branch, then blow the whole branch away, to start over again with only the first few commits.
My question for this forum is how can I reduce prevent GitHub Copilot from just generating errors exponential? My using Copilot in this way isn't at all useful. In fact, it is worse than useless. There's probably a dozen NuGet packages used in the whole VS solution. Changing just the ones tied to .NET 8 I see results in causing mayhem in the solution. Is there a way of using GitHub Copilot more intelligently, so that it will "know" that changing this NuGet package(s) will require changing those NuGet packages?