Search code examples
windows-installerinstallationgac

Deployment to GAC via Setup msi


I have inherited a project which deploys a "common" assemlby (DLL) to the GAC. In the Setup project, the Properties window of the Primary output from Common specifies the Folder property as Global Assembly cache.

However, when I navigate to the GAC in Windows Explorer, I cannot find any trace of that assembly.

I have to assume it is there, because it contains the DAL and the database is being hit.

In the project itself, I note that in the AssemblyInfo.cs file, the following lines are commented out: [assembly: AssemblyKeyFile("")] and [assembly: AssemblyKeyName("")]

But on the signing tab, there is a key specified and the Sign the Assembly checkbox is checked.

I just want to understand why it is not listed in the GAC (via the shfusion.dll - viewer). I have fixed a few bugs and would like the confidence that the updated dll was deployed to the GAC without having to manually do so.

[edit] I finally found that dll in the GAC and using Decompiler, have ascertained that it does not include my changes. I guess this means the installer does not work and I need to manually install it.

Cheers


Solution

  • Just closing off this thread because the discussion in the comments of the original question covers everything off.