Disable autoReferenced in NuGetForUnity.asmdef by apkd · Pull Request #724 · GlitchEnzo/NuGetForUnity (original) (raw)
After some testing, it looks like the correct fix for #672 is to remove or empty the csc.rsp file.
The compilation errors are actually preceded by the warning:
4>Microsoft.Common.CurrentVersion.targets(2433,5): Warning MSB3243 : No way to resolve conflict between "System.IO.Compression, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.IO.Compression, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". Choosing "System.IO.Compression, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
Looks like System.IO.Compression is already brought in by default, and referencing it using csc.rsp causes a conflict. Not sure if removing csc.rsp breaks compatibility with earlier Unity/IDE versions. Can someone check? I'm assuming it was needed for something at some point?
I still think disabling autoReferenced seems like a good idea, so I'll leave this pull request around for now.