You have to create a WDL as you did (both approaches should work) and - and that took some time for me to find out, too - copy it into your .cd folder after publishing. Now I find it quite logical, as WDL files can't be compiled to exe.