Hi, The file isn't locked, Cecil just reads the assembly's section in memory and work from that.
So something else is locking your file. Jb On Mon, Dec 1, 2014 at 8:51 AM, Lior Tal <[email protected]> wrote: > Hey, > > I am using AssemblyDefinition.ReadAssembly to read an assembly on disk and > to go over its contents. > > Does this call keep the file open or locked in any way? > > My code runs as a plugin as part of another program (Unity), so once it > finishes it does not "exit" like a standalone program would. > > From what i've seen, the assemblies i am reading stay 'locked' and cannot be > overwritten afterwards. > > Is there any easy way to circumvent this? (not by launching a separate > AppDomain, etc) > > Lior > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
