AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 290 forks source link

Variations in NuGet Package ID Case Sensitivity can lead to an Editor Restart Loop on Install #704

Open ilexp opened 5 years ago

ilexp commented 5 years ago

Summary

In some rare cases, NuGet packages can have inconsistent naming, where package ID can differ in case sensitivity when retrieved / viewed on the web, vs. when downloaded and installed. To Duality, the installed package will then be a different one than the online package, causing an editor restart loop after installation.

How to reproduce

@SirePi initially reproduced this with an earlier version of the YAUI plugin by using the $id variable in the .nuspec, switching from CamelCase .Core to (derived from the .csproj) lowercase .core, triggering the issue.

notepad _2018-12-09_21-09-06 explorer_2018-12-09_21-09-44 nugetpackageexplorer_2018-12-09_21-10-17

Workaround

Analysis