Hacker News new | ask | show | jobs
by drivebyacct2 5219 days ago
Not sure why this keeps getting downvoted. It's a well known "dirty secret". Just try searching for XML Config Transforms as that's theoretically the clean way of solving this problem. It's only natively supported for certain projects, can be hacked into more via manually editting MSBUILD and CSPROJ files and worst of all, breaks miserably during the Azure deploy as VS simply skips some of MSBUILD files and simply decides to package things from your original source tree as it sees fit. Meaning it completely and utterly fails at the one good thing it can do as it only works in fairly contrived situations.

This means I have to manually edit connection strings, debug settings and more that vary between our local ASP.NET servers, our intranet dev server, our local emulator environment and then debug/prod Azure instances.

If I'm mistaken I would be ecstatic to be corrected. Hell, I'd have paid money out of pocket for a macro/conditional solution for this problem when I was working on this project. Also, if it's just too off-topic, please accept my sincere apologies. I just found it kinda nitpicky to pick on Android for this, although I can sympathize with the author if they're accustomed to more "open" languages and frameworks that are more tool-friendly.