关于如何解决项目从低版本向高版本转换出现的问题
Assets\3rdParties\XLua\Src\CodeEmit.cs(133,31): error CS0246: The type or namespace name 'ILGenerator' could not be found (are you missing a using directive or an assembly reference?)
Assets\3rdParties\XLua\Src\CodeEmit.cs(133,87): error CS0246: The type or namespace name 'LocalBuilder' could not be found (are you missing a using directive or an assembly reference?)
Assets\3rdParties\XLua\Src\CodeEmit.cs(200,17): error CS0246: The type or namespace name 'ModuleBuilder' could not be found (are you missing a using directive or an assembly reference?)
解决方法
这种情况一般是由编辑器的 .Net 框架版本不一致导致的,我也看了其他人的一些博客,大多是让手动修改Visual Studio的框架版本,但我试过之后根本没有用。如果有和我一个情况的小伙伴可以试试我这个方法。