Re: Problem in adding file to deployment

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nick (nick029_at_heha.net.tw)
Date: 08/25/04


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() ...
>>



Relevant Pages

  • Re: debugging php mail
    ... Do I need to do this at the linux ... Also be sure that you have an SMTP and smtp port setup under [mail ... So I am debugging to try an locate the issue. ...
    (comp.lang.php)
  • Re: How can I get started in the security business?
    ... A road map is always a good idea. ... debugging and I am pretty darn good at it. ... switch is the fact that I find computer security very fascinating and ... It is hard to setup a discussion with top ...
    (comp.security.misc)
  • Re: Recommend a debugger
    ... Originally it was just saying " Setup has encountered a problem and will now terminate") ... This part of the setup program appears not to be using Microsoft Windows Installer, but is using InstallShield 11.0 in some other manner. ... I looked at the .dll routine being called with PE Explorer ... I have "Debugging Tools for Windows" which has WinDbg.exe, ...
    (microsoft.public.vc.mfc)
  • Error while trying to run project
    ... I setup a new OS Win XP Pro and V. Studio Enterprise Architech 2003 ... Error while trying to run project: Unable to start debugging on the web ... I can create new web application on VStudio ...
    (microsoft.public.dotnet.framework.aspnet)
  • Debugger / message pump problems
    ... I'm having problems debugging a MFC app in eVC++ 4. ... essentially a container for several ActiveX controls with a ... on the CE platform get processed, and the debug application runs as ...
    (microsoft.public.windowsce.embedded.vc)