Set app reference with config
-
I have a windows form app that references a library. I want to deploy the app to a different machine and I don't know the name/location for the reference on that machine. Can I edit a config file to include the reference for the new machine? And can you point me to an example, please? I can use either VB6 or VB.net with VS 2010. Thank you for your help. Bobby
-
I have a windows form app that references a library. I want to deploy the app to a different machine and I don't know the name/location for the reference on that machine. Can I edit a config file to include the reference for the new machine? And can you point me to an example, please? I can use either VB6 or VB.net with VS 2010. Thank you for your help. Bobby
A "reference" is only valid at compile-time and only works with COM-based and .NET libraries. If you're using a COM-based library, the registration information in the registry is all that is needed. If using a .NET library, all you need is the library in the same folder as the .EXE that's using it. You don't provide this information at runtime.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
A "reference" is only valid at compile-time and only works with COM-based and .NET libraries. If you're using a COM-based library, the registration information in the registry is all that is needed. If using a .NET library, all you need is the library in the same folder as the .EXE that's using it. You don't provide this information at runtime.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave KreskowiakThanks, Dave. And looking at the build action, seems like the library has to be on the development machine, too. And, do I only need the .tlb file for the target application? Bobby
-
Thanks, Dave. And looking at the build action, seems like the library has to be on the development machine, too. And, do I only need the .tlb file for the target application? Bobby
-
Tlb's are for COM objects ... you may need to register the reference on the other computer... look into regsvr32 Kris
Thanks, Kris. The library will already be registered on the client. I'll see how it goes. Bobby