问题描述
unity报错
VS报错
在NuGet中重新下载protobuf2.4.0.0后没有报错,但是但是重新打开解决方案后又报错
原因分析:
重新打开解决方案后,会按照原来的路径自动添加原来的protobuf(也就是2.3.0.0)
解决方案:
把NuGet中下载的protobuf-net2.4.0.0复制到原先protobuf-net2.3.0.0的位置
protobuf-net2.4.0.0的路径通常在...\Packages\protobuf-net.2.4.0\lib\net40
最后,重新生成解决方案。