BUG: Deleted last nuget reference from C# solution, and it didn't fully remove itself and build was broken

I had a reference in a solution for one project called Sharpavi. When I removed that nuget package, it should have completely removed NuGet from the solution and project. It mostly did, but left a remnant at the very bottom of the project file that made it
not compile until we manually edited the project file in notepad and removed the block of code. It looks something like this: