Mono-D icon indicating copy to clipboard operation
Mono-D copied to clipboard

Changes to non-code files in a project causes the application to have to build too

Open Jebbs opened this issue 11 years ago • 2 comments

I have an XML file in my D project that I have set to copy to the output directory if newer. If I make changes to this XML file, and then go to run my program, it rebuilds everything even if non of the D source files were changed.

Jebbs avatar May 01 '14 19:05 Jebbs

The reason this is currently the case is because of string imports, which would require re-building the binary to take effect. As to how to fix this, I think the only viable option would be to introduce a new build action for files that are intended to be available for string imports, but I don't know if it's possible for Mono-D to do this, or if it would require changes in Xamarin Studio...

Orvid avatar May 02 '14 13:05 Orvid

Nah, the BuildAction is a simple string that may be everything. Anyway, if you change some resources that shall be linked in, then you may of course wish to have everything rebuilt or at least copied to the target directory -- just for consistency reasons.

aBothe avatar May 02 '14 13:05 aBothe