如何生成一个.net3.5的库?
问题产生的原因
我想在unity里使用protobuf的库,于是下载了源码:
https://github.com/protocolbuffers/protobuf/releases
然后打开csharp项目,编译之后,报错:
Assembly 'Assets/Google.Protobuf.dll' will not be loaded due to errors:
Unable to resolve reference 'System.Memory'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'System.Runtime.CompilerServices.Unsafe'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'System.Buffers'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
主要是这里是.net4.x的库。
所以我们需要生成一个.net3.5的库。