Re: Build Action , resource (file)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ryan Liu

    Re: Build Action , resource (file)


    "j1mb0jay" <j1mb0jay@uni.a c.ukдÈëÏûÏ¢ÐÂÎ Å:s0dmg5x4el.ln 2@news.aber.ac. uk...
    On Sun, 25 May 2008 02:20:41 +0800, Ryan Liu wrote:
    >
    >Hi,
    >>
    >I couldn't find help doc for Build Action properties.
    >>
    >In the drop down list, there are: None, Compile, Content and Embedded
    >Resource, what are those mean and when to use which one? And how is this
    >property related to property "Copy to output directory"?
    >>
    >-------
    >If I have some files like xslt file, file based database(like access or
    >sqlite) used by the application. I want them to be part of release.
    >Must I copy them to project root folder? And must/can I include them
    >as "resource" or just a file in project(I done by show all files in
    >project and then use "Include in Project" cmd)? Can I "embed" any kind
    >of resource?
    >>
    >Thanks a lot!
    >Ryan
    >
    Embedded is as it sounds, it allows a resource for example a XML file, or
    a set of images to be complied into DLL file. This means the end user
    will not be able to see all of the "smaller" files and just the one.
    >
    j1mb0jay
    Thanks, j1mbjay.



    Then what is the difference betweeen "Content" and "Embedded"?
    What is the difference between put a file in Resource (folder) or just in
    project?
    Thanks!


  • j1mb0jay

    #2
    Re: Build Action , resource (file)

    On Sun, 25 May 2008 09:01:30 +0800, Ryan Liu wrote:
    "j1mb0jay" <j1mb0jay@uni.a c.uk>
    ÐŽÈëÏûÏ ¢ÃÃ‚ÃŽÃ…:s0dmg 5x4el.ln2@news. aber.ac.uk...
    >On Sun, 25 May 2008 02:20:41 +0800, Ryan Liu wrote:
    >>
    >>Hi,
    >>>
    >>I couldn't find help doc for Build Action properties.
    >>>
    >>In the drop down list, there are: None, Compile, Content and Embedded
    >>Resource, what are those mean and when to use which one? And how is
    >>this property related to property "Copy to output directory"?
    >>>
    >>-------
    >>If I have some files like xslt file, file based database(like access
    >>or sqlite) used by the application. I want them to be part of release.
    >>Must I copy them to project root folder? And must/can I include them
    >>as "resource" or just a file in project(I done by show all files in
    >>project and then use "Include in Project" cmd)? Can I "embed" any kind
    >>of resource?
    >>>
    >>Thanks a lot!
    >>Ryan
    >>
    >Embedded is as it sounds, it allows a resource for example a XML file,
    >or a set of images to be complied into DLL file. This means the end
    >user will not be able to see all of the "smaller" files and just the
    >one.
    >>
    >j1mb0jay
    Thanks, j1mbjay.
    >
    >
    >
    Then what is the difference betweeen "Content" and "Embedded"? What is
    the difference between put a file in Resource (folder) or just in
    project?
    Thanks!
    I think that Content means that when you compile the program you will
    have a copy of that file in the Release folder, for embedded the file
    will become part of DLL and you will not see it in the Release folder.

    This is from memory, be sure you try and test it !!

    j1mb0jay

    Comment

    Working...