CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Aug 2010
    Posts
    17

    codedomprovider references help

    When I use the codedomprovider compiler I add .NET references by simply adding the path name:

    foreach (string str in referenceList)
    {
    cp.ReferencedAssemblies.Add(str);
    }


    This works okay when normal .NET libraries but when I add my own .dll the compiled EXE will only work if the .dll is in the root folder of the EXE even if the path was set at something different. Why is this? Can the codedom by set to copy the dll to the root automatically so it doesn't throw this error?
    Last edited by wurdup; August 21st, 2011 at 07:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured