472,956 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,956 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 6550
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Phil Powell | last post by:
Consider this: class ActionHandler { ...
7
by: longtungd1 | last post by:
I'm currently taking a Visual C++ course. I have C++ version 6.0 on my machine. I set up a basic program per course instructions to simply create a window with default toolbar, etc., using App...
4
by: Rob Tillie | last post by:
Hello, I want an xml file, part of the project, be included in the build so that it gets to debug/bin. I already set the build action "content", which describes what I want, but vs.net doesn't...
9
by: dale zhang | last post by:
Hi, Anybody here has experience to build a english/chinese web? The chap 15 in Developing Web Applications tells sth about how to do this, but I want to know more details. It seems detect...
2
by: guoqi zheng | last post by:
Hi, I am using resource file for multi lingual content web site. By default, resource files are built into .dll files which is fine, but what I want is that I can edit those content without have...
1
by: urban.john | last post by:
Here are my steps: create resource files from resx files: <echo message="CREATING RESOURCE FILES FROM RESGEN EN" /> <resgen todir="product\resources_en" verbose="true"> <resources> <include...
1
by: Fredrik Jansson | last post by:
Hi! I have a Webapp (c#) in VS 2005. I am trying to embed nhibernate xml files. When I check properties of a xml file I only see "File Name" and "Full Path" and cannot set build action to...
1
by: Ryan Liu | last post by:
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...
14
by: yxq | last post by:
Hello, I want to build the multi-language application with the xml file, how to do? could anyone tell a sample? Thank you
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.