How to synchronise the publish version to the assembly version in a .NET ClickOnce application?

sylvanaar’s last line looks like the way to go, in my experience; but with the caveat that it is only available to deployed versions of the application. For debugging purposes, you might want something like: static internal string GetVersion() { if (ApplicationDeployment.IsNetworkDeployed) { return ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); } return “Debug”; }

Building a library using autotools from cmake

I think that you’d be better off using the ExternalProject feature of cmake. I guess you have your project and have libantrl in a sub directory? project +- libantlr +- mysrc —- etc —- If that’s the case, you can do something like this in the top level CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project(test) include(ExternalProject) ExternalProject_Add(libantlr SOURCE_DIR … Read more

Best practice for setting up an automated build server for iphone apps?

Hudson (or its fork Jenkins) is really not hard to set up; it’s what we use internally. We don’t just run iphone builds from it — in fact, there’s only only one lone mac mini set up for iphone builds, and it’s a relatively recent addition. We’ve had a half-dozen other slaves on it for … Read more

Sublime Text CoffeeScript build system: `env: node: No such file or directory`

In Terminal, type which node, then create a symlink to that location in /usr/bin. For example, if node lives in /usr/local/bin, create the symlink like so: sudo ln -s /usr/local/bin/node /usr/bin/node If you look at the source of your coffee script, you’ll probably find that the first line is something along the lines of: #!/usr/bin/env … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)