locked
Installing C# dll in GAC which references C++/CLI dll RRS feed

  • Question

  • Hello!

    I have a C# dll which references C++/CLI, which inturn references to C++ unmanaged code dll.  I plan to deploy the C# dll with a setup project.

    I am wondering to how to deploy the C# dll & C++/CLI & C++ dll in GAC.

    The assembly in GAC will be referenced by a .NET application.

    Are there any best practices ?.

    TIA

    • Moved by Andrew.Wu Monday, June 6, 2011 7:36 AM (From:.NET Framework Setup)
    Sunday, June 5, 2011 12:08 AM

Answers

  • As far as i know, the unmanaged dll's cannot be installed in GAC. So you would have to put in your unmanaged dlls in the System(32) folders.

    Otherwise you will have to have private assemblies and have the unmanaged dlls also as part of the same folder

    • Marked as answer by GKS001 Friday, June 10, 2011 9:40 AM
    Monday, June 6, 2011 11:22 AM

All replies

  • Hi,

    It appears that your question is more related with CLR, so I'm going to help move your post to the Common Language Runtime forum for better support.

    Thanks for your understanding.

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, June 6, 2011 7:36 AM
  • As far as i know, the unmanaged dll's cannot be installed in GAC. So you would have to put in your unmanaged dlls in the System(32) folders.

    Otherwise you will have to have private assemblies and have the unmanaged dlls also as part of the same folder

    • Marked as answer by GKS001 Friday, June 10, 2011 9:40 AM
    Monday, June 6, 2011 11:22 AM
  • Thanks a lot
    Friday, June 10, 2011 9:40 AM