'Copy to Output Directory" in VS 2008

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David V

    'Copy to Output Directory" in VS 2008

    I'm having trouble copying DLLs from a folder in my project to the
    project's output directory.

    I have copied seven SQL CE DLLs (the SqlCe*.dll set) to a Libs folder
    in my project. The DLLs VS 2008 file properties are set as follows:

    Build Action: Content
    Copy to Output Directory: Always

    When I compile, the DLLs don't copy to the output directory.

    As a workaround, I've added a post-build event to force the copy. But
    I still want to figure out why the 'Copy to Output Directory' property
    isn't working. Any thoughts? Thanks.
  • Family Tree Mike

    #2
    Re: 'Copy to Output Directory" in VS 2008

    Well, for me it did copy the dll to a 'lib' folder in the output folder.
    Did you see such a folder in the output directory?

    "David V" <davidv@veenema n.comwrote in message
    news:1e0c6c8a-bf14-4371-8596-0598513021a4@2g 2000hsn.googleg roups.com...
    I'm having trouble copying DLLs from a folder in my project to the
    project's output directory.
    >
    I have copied seven SQL CE DLLs (the SqlCe*.dll set) to a Libs folder
    in my project. The DLLs VS 2008 file properties are set as follows:
    >
    Build Action: Content
    Copy to Output Directory: Always
    >
    When I compile, the DLLs don't copy to the output directory.
    >
    As a workaround, I've added a post-build event to force the copy. But
    I still want to figure out why the 'Copy to Output Directory' property
    isn't working. Any thoughts? Thanks.

    Comment

    • David V

      #3
      Re: 'Copy to Output Directory&quot; in VS 2008

      I was able to get it to do that. But, since I need the file in the
      output root folder, I guess I'm stuck with the post-build command. I
      supposew it's another strange Microsoft bug. Thanks for looking at it.

      Comment

      • Family Tree Mike

        #4
        Re: 'Copy to Output Directory&quot; in VS 2008

        Or, you could just leave it at the top level of the source directory. It
        appears to believe you want to place it in a path relative to the source
        folder in the output.

        "David V" <davidv@veenema n.comwrote in message
        news:d9dafd2d-5c30-4391-a425-734bc2a567e8@f3 6g2000hsa.googl egroups.com...
        >I was able to get it to do that. But, since I need the file in the
        output root folder, I guess I'm stuck with the post-build command. I
        supposew it's another strange Microsoft bug. Thanks for looking at it.

        Comment

        Working...