How to package up files with OpenWrap
OpenWrap can be easily used to package up .Net projects, but it can also be used to package up any files that you want it to. I tried to do this for testing purposes, but it's useful as a general file distribution process – i.e. how many computers can be kept up-to-date with the same versions of a set of files, be they a web app made of .html, .css and js files, a desktop application made from .exe and .dll files, or whatever.
I spent a few hours working out how to do this, resorting finally to reading the documentation. Here are the step-by-step details of what I came up with.
Note this example assumes that you have, for the sake of example, a folder called C:\Code\ORTest\Content containing the content files that you want to publish, in this case a file HelloWorld.txt containing the traditional text "Hello, world." and that you wish to make a repository at C:\Code\ORTest\Repo. If you wanted to get these files to several machines, you would make this repository on a \\server\share folder, but a local folder will do for testing.
This also assumes that you have OpenWrap installed, and o.exe is available at a command prompt.