Tuesday, April 24, 2012

Transform Web.config for debugging using MsBuild 4.0 and VS.NET 2010

This is the old topic and there are quite a few post about this. I found following articles are quite helpfull and actually, I based on their help to make a solution that fit my need: http://geekswithblogs.net/EltonStoneman/....aspx http://stackoverflow.com/questions/2905151 Well, in my project, I have a 3 different configuration files...

Thursday, April 19, 2012

MVC Enum and Nullable object JSON ModelBinder

Warning: This post is quite long with so many unusable code except the last one which is my solution. Stop reading or get your own a cup of tea first :) - When posting Json data to an MVC action method, you could face a problem if you're using numeric values for enum field instead of string representations of the enum names. There...

Wednesday, April 4, 2012

Deploy window service artifact to a remote server after a successful build on TeamCity

There is a new version of this approach: http://thoai-nguyen.blogspot.com.au/2012/10/deploy-dot-NET-window-service-TeamCity-Updated.html Deploy window services from TeamCity is such a pain since you don't have something like WebDeploy as deploying a web application. Optopus is a product on the market to do it but I don't want to pay for this simple task. So here is the way I did. Tool: powershell, window commands, wget,...