Re: Problem in adding file to deployment
From: Nick (nick029_at_heha.net.tw)
Date: 08/25/04
- Next message: Carlos J. Quintero [MVP]: "Re: Problem in adding file to deployment"
- Previous message: Nick: "Re: Problem in adding file to deployment"
- In reply to: Nick: "Re: Problem in adding file to deployment"
- Next in thread: Carlos J. Quintero [MVP]: "Re: Problem in adding file to deployment"
- Reply: Carlos J. Quintero [MVP]: "Re: Problem in adding file to deployment"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 21:59:39 +0800
Hi Carlos,
One more question, :)
1. Now I can deploy the file through MSI, but the file does not appear
in the debug folder when debugging. How to make it also appear when
debugging.
Thanks
Nick
Nick wrote:
> Hi Carlos,
>
>
> You explanation is very clear and helpful for me. I really appreciate
> and thanks so much for your kind help.
>
> Thanks again!
>
> Nick
>
>
> Carlos J. Quintero [MVP] wrote:
>
>> 1) You have solution and projects:
>>
>> 1.1) A solution is a container for projects, but solutions can have also
>> files: select the solution node, right-click Add, Add New Item... and
>> select
>> a Text file. The text file is added inside a node called Solution Items.
>> This is only a convenience during development to avoid you to use the
>> Windows Explorer to locate and open them. Notice that files in this node
>> lack the Build Action property.
>>
>> 1.2) A project is a container for files, most of them are source code
>> files
>> (Build Action=Compile) but projects can have too non source code
>> files, such
>> text files or xml files. In this case the Build Action is used to set
>> if the
>> file:
>>
>> 1.2.1) Will be embedded in the executable when built (Build
>> Action=Embedded Resouce): such an icon or xml file with strings that
>> the exe
>> will need at run-time but you donīt want to provide it as an external
>> file
>> but embedded (there is a NET function to retrieve embedded resources
>> at run
>> time).
>>
>> 1.2.2) Will be excluded from the executable when built (Build
>> Action=Content). This can happen in 2 cases:
>>
>> 1.2.2.1) The file is only a convenience during development.
>>
>> 1.2.2.2) The file will be needed at run time but it is
>> provided
>> as an external file (not embedded) and therefore you will need to include
>> explicitly in the setup. This is your case.
>>
>> I hope it's clear now.
>>
>> 2) Could you ellaborate this question a bit more? Who needs the path? The
>> setup knows the path because you have added it... and after installing
>> the
>> application, the executable can know its path using
>> System.Reflection.Assembly.GetExecutingAssembly().Location() ...
>>
- Next message: Carlos J. Quintero [MVP]: "Re: Problem in adding file to deployment"
- Previous message: Nick: "Re: Problem in adding file to deployment"
- In reply to: Nick: "Re: Problem in adding file to deployment"
- Next in thread: Carlos J. Quintero [MVP]: "Re: Problem in adding file to deployment"
- Reply: Carlos J. Quintero [MVP]: "Re: Problem in adding file to deployment"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|