Thursday, 15 April 2010

vb.net - How to copy .exe from output directory on project/solution build automatically in Visual Studio -



vb.net - How to copy .exe from output directory on project/solution build automatically in Visual Studio -

so looking @ post, vs2010 how include files in project, re-create them build output directory automatically during build or publish.

this seems pretty close looking do, want have .exe built copied sec output directory.

to help explain, when build/rebuild project/solution .exe's set in

[somepath]\projects\[nameofsolution]\[nameofproject]\bin\release\outputfile.exe

what have visual studio automatically create re-create of outputfile.exe other directory, server share on network have read/write access to. grab server share not available since write code on traveling laptop. need have sort of logic check guess...

i don't know begin; if it's possible in visual studio. tried looking post-build actions in project settings, have no thought in dialog box. tried googling how it, since don't know how explain want well, google results useless.

this in fact duplicate of copy file(s) 1 project using post build event...vs2010

like said, didn't know how explain wanted, when searched didn't find relevant results.

in case comes question via google search in future, next post-build event command worked me (has on 1 line):

if $(configurationname) == release re-create /b /y /v "$(targetpath)" "\\some\path\to\file\share\$(targetfilename)"

vb.net visual-studio visual-studio-2012 build

No comments:

Post a Comment