0
\$\begingroup\$

I know of ClickOnce which creates an .exe file so a user can play my XNA game.

However, I have to manually go through a wizard in order to create this file.

I would like for the new .exe to be created upon a successful commit of the code to GIT (ie. all my tests pass and the build succeeds) and for this file to be deployed on my Amazon AWS server so users can instantly download the 'new version' each commit.

Is this possible? I've been taking a look at Jenkins which seems to do what I want (Automated builds) but seems as though it's only for JAVA software.

Thanks for any info :)

\$\endgroup\$
5
  • \$\begingroup\$ There is normally an .exe file in Debug/bin folder that works as a standalone version of your game as long as the user has .NET installed. \$\endgroup\$ Commented Jul 26, 2014 at 17:30
  • \$\begingroup\$ How would I go about moving this .exe to my server upon a successful GIT commit? Is it possible to do such a thing? :/ \$\endgroup\$
    – R-nold
    Commented Jul 26, 2014 at 18:40
  • \$\begingroup\$ Ive never done something like this myself, but I think your best bet would be to manually upload it every once in a while \$\endgroup\$ Commented Jul 26, 2014 at 18:42
  • \$\begingroup\$ Using the .exe in the Debug/bin folder doesn't work. If I move it from the directory it is in and try to run it it just doesn't start the program. \$\endgroup\$
    – R-nold
    Commented Jul 26, 2014 at 20:53
  • \$\begingroup\$ Make sure you copy all dlls in the bin/Debug folder along with the exe \$\endgroup\$ Commented Jul 26, 2014 at 20:56

1 Answer 1

1
\$\begingroup\$

You want a git post-commit or post-push hook to invoke your build chain automatically every-time those things happen.

http://git-scm.com/book/en/Customizing-Git-Git-Hooks

(Or you could use Jenkins? Same thing, but more complex. Though you might like those features.)

Simply google "automated clickonce" to see that click once is not intended to be automated. You need another tool for that. msbuild, which is what visual studio uses internally, can build visual studio projects on the command line.

https://stackoverflow.com/questions/1841435/is-it-possible-to-automate-a-clickonce-deployment

https://stackoverflow.com/questions/6319274/how-do-i-run-msbuild-from-the-command-line-using-windows-sdk-7-1

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .