471,348 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Re: Build Action , resource (file)


"j1mb0jay" <j1******@uni.ac.uk写入消息新闻:s0************@new s.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!
Jun 27 '08 #1
1 6466
On Sun, 25 May 2008 09:01:30 +0800, Ryan Liu wrote:
"j1mb0jay" <j1******@uni.ac.uk>
脨沤脠毛脧没脧垄脨脗脦脜:s0************@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
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Phil Powell | last post: by
7 posts views Thread by longtungd1 | last post: by
4 posts views Thread by Rob Tillie | last post: by
9 posts views Thread by dale zhang | last post: by
2 posts views Thread by guoqi zheng | last post: by
1 post views Thread by Fredrik Jansson | last post: by
1 post views Thread by Ryan Liu | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.