none
Build Action and Custom Tool

    Question

  • When VS builds an application it converts the app.config file into <applicationname>.exe.config.

    I need to have it omit certain lines from the output config file, but I need the lines in the source config file. I would guess I need a certain setting in Build Action and a Custom Tool. My question is: what setting and what are the specs for the custom tool so I can write it?

    Or would the means for this be something else entirely?

    Thanks,


    Jon Jacobs, There are 10 kinds of people: those who understand binary and those who don't

    Friday, March 17, 2017 1:15 PM

Answers

  • Hi Jon Q Jacobs,

    The answer is Yes. We could use build events to specify commands that run before the build starts, before the link process, or after the build finishes.

    https://msdn.microsoft.com/en-us/library/h7dhf0ty.aspx


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Jon Q Jacobs Thursday, March 23, 2017 5:32 PM
    Monday, March 20, 2017 7:33 AM

All replies

  • Hmm. Looks like pre build event and post build event applications would be much simpler. What do you think?

    Jon Jacobs, There are 10 kinds of people: those who understand binary and those who don't

    Friday, March 17, 2017 1:30 PM
  • Hi Jon Q Jacobs,

    The answer is Yes. We could use build events to specify commands that run before the build starts, before the link process, or after the build finishes.

    https://msdn.microsoft.com/en-us/library/h7dhf0ty.aspx


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Jon Q Jacobs Thursday, March 23, 2017 5:32 PM
    Monday, March 20, 2017 7:33 AM