Creating and then using a local OpenWrap repository
When I looked at this blog post here about setting up a NuGet local repository I couldn’t help but write up the necessary steps to get a local repository with OpenWrap:
I’m not sure so let’s ask OpenWrap
PS C:\dotnet\dev\github> o get-help add-remoteCOMMAND add-remoteDESCRIPTION Adds a remote repository.
USAGE add-remote [-Name] <String> [-Href] <Uri>
PARAMETERS -Name <String> Specifies the name used to identify this remote repository. -Href <Uri> Specifies the URI used to access this remote.- file://[servername]/path/ for local or UNC paths- http://[servername] for OpenWrap repositories- nupack://[servername]/path for NuPack repositories</pre></div>
Ah, ok.
o add-remote –name local –href file:///C:/dotnet/openwrap
Now we have a local repository.
You can use it by e.g. adding packages:
o publish-wrap fancyproject –remote local
When I ask my local repository what it contains it gives me…
PS C:\dotnet\dev\github> o list-wrap -remote local - MemBus (available: 1.0.0.22806675, 1.0.1.23707739) - Twitterizer (available: 2.3.1.23744031) - structuremap (available: 2.6.2.0) - caliburnmicro (available: 1.0.0.47921975)</pre></div>
Unlike the mentioned post, steps of how to create a package isn’t shown here, this may be a subject for another post.