How to package a Mono (.NET) applications for Debian-based Linux in command line. Packaging process can be easily automated on Continues Integration Server.
![debian_package](https://i0.wp.com/blog.chudinov.net/wp-content/uploads/2014/12/debian_package.png?resize=128%2C128)
Package building workflow is quite simple:
- Assign a version number to a .NET assembly code
- Build binaries
- Copy binaries to package folder and build deb-package with the same version as an assembly
Build process will be controlled by MSBuild project file and run from a continues integrations server. MSBuild on Mono platform is substituted by xbuild utility.
Sample solution is available for download here https://github.com/mchudinov/PackagingMono. Solution is compatible with Visual Studio 2012, MonoDevelop/Xamarin Studio 5.
This is my third blogpost about automation of development workflow with Mono. Automated building and versioning were covered in my previous posts:
Continue reading →