Post build event does not work

visual-studio

(Carlos Frias) #1

Elements 10.0.0.2321
Visual Studio 2015 Community update 3

I put this in post build event:

xcopy "$(TargetDir)$(TargetFileName)" "C:\Users\charly.DTRF\Documents\Visual Studio\Projects\Oxygene\WPF\CompleteClassTest" /Y /I

and the output shows:

PostBuildEvent = xcopy "" "C:\Users\charly.DTRF\Documents\Visual Studio\Projects\Oxygene\WPF\CompleteClassTest" /Y /I

so it seems that macros do not work.

I have done another test putting:

xcopy "C:\Users\charly.DTRF\Documents\Visual Studio\Projects\Oxygene\WPF\CompleteClassTest\bin\Debug\CompleteClassTest.dll" "C:\Users\charly.DTRF\Documents\Visual Studio\Projects\Oxygene\WPF\CompleteClassTest" /Y /I

and the output shows:

PostBuildEvent = xcopy "C:\Users\charly.DTRF\Documents\Visual Studio\Projects\Oxygene\WPF\CompleteClassTest\bin\Debug\CompleteClassTest.dll" "C:\Users\charly.DTRF\Documents\Visual Studio\Projects\Oxygene\WPF\CompleteClassTest" /Y /I

but the file is not copied.


(marc hoffman) #2

I’m afraid EBuild does not currently support Pre/PostBuild events. it’s own the list to look into.


(Carlos Frias) #3

Well, bad luck.


(Carlos Frias) #4

Is there any way to continue using msbuild?


(marc hoffman) #5

for Echoes projects, you vna change the .targets import in the prpject file to RemObjects.Elements.Echoes.Legacy.targets.