.netmodule problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Probably doing something stupid but can't find what.

I have a C++/CLI module. In the final assembly I include 2 C# .netmodules.
Everything has worked fine until recently when the output assembly no longer
contains the .netmodules (size of the assembly dropped from 300K to 80K). The
references are still there but the .netmodule files need to be in the same
folder as the assembly for it to work.

If I load the assembly in reflector it tells me it consists of my main
assembly + 2 .netmdules. When opening the .netmodules in reflector it says
the files are not found (unless I put the .netmodule files in the folder but
that sort of defeats the purpose with .netmodules)
 
Some more information.

Looks like some kind of bug in the linker. If I add /verbose it clearly says

1>Importing assembly module C:\x\module1.netmodule
1>Importing assembly module C:\x\module2.netmodule

Another strange thing is that the ide holds a handle to one of the
..netmodule:s

If I try to rebuild a second time I get a message saying
Could not delete file "C:\x\module1.netmodule". Make sure the file is not
open...

Closing the solution doesn't solve it. I need to close the IDE to release
the handle.
 
Back
Top