Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 561905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:29:57+00:00 2026-05-13T12:29:57+00:00

I created two applications.(Console Appliaction: MyConApp.exe and Windows Application: MyWinApp.exe) Purpose, Attach MyConApp.exe to

  • 0

I created two applications.(Console Appliaction: MyConApp.exe and Windows Application: MyWinApp.exe)
Purpose, Attach MyConApp.exe to MyWinApp.exe and transfer the MyConApp.exe args with the MyWinApp’s Pre-build event.

[update]

MyConApp.exe is a small tool to parse a XSD file and generate a FromXSD.cs file. It worked very vell if i double click it.And myConAppArgs is the XSD file path.

Now the FromXSD.cs file used by the MyWinApp.exe project. I hope to build MyWinApp.sln with the FromXSD.cs file at the building time.

If the XSD file changed someday. I need handle the new XSD file automatically if i take use the pre-build event command line method. That’s why i procedured the three steps.

My Procedure

Step1.

I copied the MyConApp.exe to the same path of MyWinApp.exe.

That is say: there are two .exe file located in the path **D:\learning\cs\MyWinApp\MyWinApp\bin\Debug**

Step2.

Open the MyWinApp project properties -> build events -> and the Pre-build event command line:

input:

myConApp.exe myConAppArgs

Step3.

Save MyWinApp project, build and run it.

Is there any better method to do this or any stand procedure to follow? Thanks for reading and replies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:29:57+00:00Added an answer on May 13, 2026 at 12:29 pm

    Due to the fact, that you want to do this in your pre-build event, you can merge step one and two. Just try the following in your WinApp pre-build event:

    copy /y $(SolutionDir)conApp\$(OutDir)ConApp.exe $(TargetDir)
    ConApp.exe -i -k -whatever
    

    So your ConApp will always be fresh copied within the pre-build event. Also you should set in the Project Dependencies of WinApp, that it will depend on ConApp. So ConApp will always be built before WinApp.

    To access the Project Dependencies just right click in your Solution Explorer on the WinApp project and search that entry within the context menu.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created two forms in my Windows Application. One Form acts as a
I have two windows application, one is a windows service which create EventWaitHandle and
I have created two brand new solutions using the latest VS 2010: C# console
We have two applications running on single machine,one of which is web application that
I've created an empty console application in Visual Studio 2010 and I'm attempting to
In the bad old days of interactive console applications, Don Libes created a tool
I created a console application that sends data on a network link. I used
I created a win32 console application (without enable precompiled header option). And now my
I would like to create a UIBarButtonItem on my iPhone application which has two
I created two tables: Publisher PK, PublisherId, int, not null, indentity +1 PublisherName, varchar(50),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.