Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error CS0122: `Mono.Cecil.MethodReference.ContainsGenericParameter' is inaccessible due to its protection level #15

Closed
staare-zx opened this issue Jan 4, 2017 · 5 comments

Comments

@staare-zx
Copy link

Unity4.7.2下,Editor\Data\Managed下只有Mono.Cecil.dll一个文件,没有Mono.Cecil.Pdb.dll,Mono.Cecil.Mdb.dll。而且复制Mono.Cecil.dll到Editor目录后报错:Assets/XLua/Src/Editor/Hotfix.cs(171,72): error CS0122: `Mono.Cecil.MethodReference.ContainsGenericParameter' is inaccessible due to its protection level

@yxriyin
Copy link

yxriyin commented Jan 4, 2017

I found the same problem

@chexiongsheng
Copy link
Collaborator

对于老版本的cecil这个property是internal的,已经做了兼容,请pull下。 @staare-zx @yxriyin

@yxriyin
Copy link

yxriyin commented Jan 4, 2017

现在已经好了 不过unity4木有Mono.Cecil.Pdb.dll,Mono.Cecil.Mdb.dll,所以开启HOTFIX_DEBUG_SYMBOLS也还是无法调试的样子,这个有办法吗

@chexiongsheng
Copy link
Collaborator

@yxriyin 找下和其配套的Mono.Cecil.Pdb.dll,Mono.Cecil.Mdb.dll?或者换个Unity版本?或者从别的版本的Unity拷贝一整套过来试试?

@yxriyin
Copy link

yxriyin commented Jan 4, 2017

@chexiongsheng 可以了 非常感谢 我拷贝了一份5.1下面的两个文件过来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants