mwp is a small tool used to publish your Mono ASP.NET website after you've build it with xbuild. It mimics the behavior of Microsoft Web Deploy, and creates a deployable package under the obj dir in your project folder.
If you're using JetBrains TeamCity on a non-windows server like me, you can use this tool to package your website into an artifact almost the same way you would do it on a Microsoft Windows server using Microsoft Web Deploy.Normally you would have the following build-steps on a Microsoft Windows server(With Microsoft Web Deploy installed):
- Build solution, using MSBuild
- Package website, using MSBuild on projectfile with Targets=Package
- Build solution, using Mono xbuild
- Package website, using a command-line where you run mwp like this:
node ~/bin/mwp.js %system.Configuration% %teamcity.build.workingDir%/SolutionName/ProjectName.csproj
That way you can later add the website to your artifact same way you would add it on a TeamCity Server running on Microsoft Windows:
ProjectName/obj/%system.Configuration%/Package/PackageTmp => SolutionName_%system.build.number%.zip!/ProjectName/
mwp is available under the BSD license.