fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: XIDE: copy none build file to output directory

XIDE: copy none build file to output directory 2 months 1 week ago #7754

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 106
Hi Chris,

as you know I'm using XIDE. My question today: is there an easy way to have none code files copied to output directory?
Background: I have script and config files included in the project. I'm changing them inside of XIDE. When I'm compiling the project it would be very good to have them automatically copied to the output directory. At the moment I copy them manually.

If there is no easy way: My suggestion is to implement another Build Type 'copy to output folder'.

Regards,
Stefan

Please Log in or Create an account to join the conversation.

XIDE: copy none build file to output directory 2 months 1 week ago #7757

  lumberjack's Avatar lumberjack Offline Posts: 416
Hi Stefan,
You can copy them to your output folder e.g. \Bin\Debug and reference them from there. If you Add existing file, just point to those and when prompted they not in the Project folder, do you want to copy, say no. They then permanently stay in the output folder. Better even, make a folder in the Debug and Release folders to have them seperate from the outputs. Adapt your code to read from these folders.

HTH,
______________________
Johan Nel
George, South Africa

Please Log in or Create an account to join the conversation.

XIDE: copy none build file to output directory 2 months 1 week ago #7758

  SHirsch's Avatar Topic Author SHirsch Offline Posts: 106
Hi Johan,

I thought about that too but that would be outside of my git repo. And I like to have them also under source control.

Stefan

Please Log in or Create an account to join the conversation.

XIDE: copy none build file to output directory 2 months 1 week ago #7759

  lumberjack's Avatar lumberjack Offline Posts: 416
Hi Stefan,
In the application properties, on the advance tab, there is the post build events. Just create a small bat file that copies the files over...
Add it to the post build events.

//OutputCopy.bat
copy *.ext c:\xide\projects\....
______________________
Johan Nel
George, South Africa

Please Log in or Create an account to join the conversation.

XIDE: copy none build file to output directory 2 months 1 week ago #7761

  Chris's Avatar Chris Offline Posts: 1109
Stefan, yeah I would do exactly what Johan says, add a Post Build event, this is exactly their purpose. Does that suit you?
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Page:
  • 1