I have a simple batch file that I\'m running from a DOS command line that is used for building a small C# application that publishes a ClickOnce project. One line is this:
msbuild xxx.csproj /target:clean;publish /property:ApplicationVersion=1.2.3.4