Ask a questionAsk a question
 

AnswerAdding a 3rd Party DLL to Published package

  • Tuesday, November 03, 2009 1:48 PMDave MacRae Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I have build an application that makes use of the 3rd Party DLL libtidy.dll. Access to this library is done via another library wich calls the appropriate p/invoke calls.

    The second library (Mark.Tidy.dll from (http://markbeaton.com/SoftwareInfo.aspx?ID=81a0ecd0-c41c-48da-8a39-f10c8aa3f931) is loaded as a Reference in the project and there is a post build event to copy libtidy.dll to the appropriate place.

    When I publish the project, Mark.Tidy.dll is included in the manifest and gets correctly published but I can't see a way to automatically include libtidy.

    Any tips?

    Thanks

    Dave

Answers

  • Monday, November 09, 2009 4:41 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    Could you please be more specific about the scenario, the file can not be put into : Primary output->Application Folder?
    How do you create the setup project?
    If you are using the setup and deployment project in Visual Studio then please these steps:
    in the setup project, right click on it in solution explorer then go to view > File System next, you will see a Window in the middle of the screen with 2 window panes. be sure to include the output project in the "Application Folder" of this treeview (click on it to select it then in the right hand window pane, right click > Add > project output > then select Primary output" In the left hand pane "File system on target machine", right click on it then go to "Add special folder" > "Application Folder" and select add -> file , then loacate the dll file in the Add file dialog and open it.

    After you install the application , the added file will be copied in to the application folder.


    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

All Replies

  • Monday, November 09, 2009 4:41 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    Could you please be more specific about the scenario, the file can not be put into : Primary output->Application Folder?
    How do you create the setup project?
    If you are using the setup and deployment project in Visual Studio then please these steps:
    in the setup project, right click on it in solution explorer then go to view > File System next, you will see a Window in the middle of the screen with 2 window panes. be sure to include the output project in the "Application Folder" of this treeview (click on it to select it then in the right hand window pane, right click > Add > project output > then select Primary output" In the left hand pane "File system on target machine", right click on it then go to "Add special folder" > "Application Folder" and select add -> file , then loacate the dll file in the Add file dialog and open it.

    After you install the application , the added file will be copied in to the application folder.


    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.