cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
smathur
Level 3

how to register .NET assembly in GAC linked to .netmodule

I have a .NET assembly file that needs to be registered into the GAC. Using Installshield 11.5,
I create a basic msi project,
add the assembly into its own component where
the destination location is the [GlobalAssemblyCache],
change the compnent property .NET scan at build to "Properties Only",
and make sure the file is a "key file".

I have tried this on a .NET assembly that does not have any dependencies, and this works fine, but when I tried doing this with a .NET assembly that is linked to a .netmodule file, it fails at runtime when trying to register the assembly file.

I cannot add it to the [GlobalAssemblyCache] because it is not a .NET module
(Installshield complains).

Does anyone know how to fix this issue or have had the same problem?

FYI, when I tried to do the same with gacutil.exe, I noticed that the .netmodule had to be in the same directory as the .NET assembly for it to register it. Also, adding the .netmodule file to the path did not help.
Labels (1)
0 Kudos
(1) Reply
enanrum
Level 9

Your posting in the MultiPlatform forum! Try posting in one of the windows forums!

Regards,
Tom
0 Kudos