Hi Jb, Thanks a lot for your quick response. In my case I am using the 0.9.4 version downloaded from the Downloads section of github. I guess that you mean trying downloading the latest version of code and building it, is there recently any new regarding generic parameters?
About the issue I am experiencing, actually I am not just reading and writing the method reference, I create a new method reference from an existing one, so I am pretty sure that I am doing something wrong. What puzzles me is that just before calling AssemblyDefinition.Write, the generic parameter of the method that fails does have a name, but in the written assembly, it doesn´t. I will try to dig a bit deeper into the code and try to build a simple proof of concept. Could someone give a hint about where in Mono.Cecil code the generic parameters are written when calling AssemblyDefinition.Write? That would help me a lot to see much faster what might be happening. Many thanks in advance. Jose Antonio On 10 jun, 15:21, Jb Evain <[email protected]> wrote: > Hi, > > On Fri, Jun 10, 2011 at 3:12 PM, arrowop <[email protected]> wrote: > > We are using mono Cecil to inject new methods in some of our libraries > > before building them. Recently we are experiencing problems in method > > references with generic parameters and after checking out our code > > more thoroughly, we have seen that the methods that fail differ > > between the versions before and after being written. > > First thing to do is to check that you're using the tip of the head of > the master branch of Cecil? > > > We don´t know already if it is because we are doing something wrong > > when creating those method references, but we would like to know if > > someone has faced the same problem becuase it is a bug in Mono.Cecil. > > we will try to dive into the code to get further details about the > > problem, but as we are not very familiar with the Mono.Cecil code, any > > help about where to look at would be much appreciated. > > It depends: > > * Are you modifying the code where you're seeing this change? If so it > could be an issue with how you emit things. > * Or does it happen for a simple roundtrip (read/write)? If so please > send the assembly privately for a check. > > Jb -- -- mono-cecil
