Skip to content

PZWulff/mwp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mono Web Publish

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):

  1. Build solution, using MSBuild
  2. Package website, using MSBuild on projectfile with Targets=Package
On a non-windows server using mwp:
  1. Build solution, using Mono xbuild
  2. 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/

License

mwp is available under the BSD license.