Hi.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.