I've created a .NET assembly for COM interop and it is working well on my development machine. I'm currently trying to figure out how to deploy the DLL to a target machine using Visual Studio's "Setup Project." How can I use the VIsual Studio setup project to do the following things:
regasm
). regasm
in favor of custom code. I this is a good idea? If so, how does this code get included in the setup project?/regfile
command of regasm
and then using the import tool on the Registry in the Setup Project. Will this work?gacutil
) Any other advice or concerns would be much appreciated.
dll file of the project in the GAC, follow these steps: In Visual Studio, create a new Visual C# Class Library project, and name the project GACDemo. In Visual Studio, you can use the IDE project properties to generate a key pair and sign your assembly.
Gacutil.exe won't be available on the target machine. Not a problem, MSI can get the job done. Right-click "File System on Target Machine", Add, GAC. Right-click that added folder, Add, Project Output. That ensures the assembly is gac-ed.
It can also register the assembly like Regasm.exe does. Set the Register property of the project output reference to vsdrpCOM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With