[MonoDevelop] No longer able to get debug information & Mono.Cecil error

berte brachmaier at amc-ds.de
Sun Apr 25 04:51:16 EDT 2010


OK - I found a way to get this to work.

The trick is to provide a second Mono.Cecil.dll which matches the one
requested from Mono.Debugger.Soft.dll. And it "must" be a second one, as one
of the MonoDevelop dlls needs the one which is already in the
"..\MonoDevelop\bin" path.

1. Compile the current Mono.Cecil version "0.9.1.0" using VS2008 SP1. You
can download the Cecil sources from here:
http://github.com/jbevain/cecil/downloads

2. Created a folder called "cecilex" under MonoDevelops bin path, which is
on my machine:
"C:\Program Files (x86)\MonoDevelop\bin\cecilex"

3. Copy the compiled Mono.Cecil.dll and Mono.Cecil.Mdb.dll into that
directory.

4. Change the MonoDevelop.exe.config file to look like this (new lines are
bold):

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="cecilex" />
    </assemblyBinding>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<dependentAssembly>
				<assemblyIdentity name="ICSharpCode.SharpZipLib"
publicKeyToken="1b03e6acf1164f73" culture="neutral" />
				<bindingRedirect oldVersion="0.84.0.0" newVersion="2.84.0.0"/>
			</dependentAssembly>
		</assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Mono.Cecil"
publicKeyToken="0738eb9f132ed756" culture="neutral" />
        <bindingRedirect oldVersion="0.6.9.0" newVersion="0.9.1.0"/>
      </dependentAssembly>
    </assemblyBinding>	</runtime>
</configuration>

That's it. But I'm not sure yet, if I get other problems with this solution.
But at least I can see debugging information.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/No-longer-able-to-get-debug-information-Mono-Cecil-error-tp1837306p2064107.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list