Provider SDK for OneGet (C#)
Quick and dirty instructions:
- vs 2013
- YOU MUST BE RUNNING THE Experimental build of OneGet : http://oneget.org/install-oneget.exe
- fork the project at https://github.com/OneGet/ProviderSdk to your own account
- rename the project to something useful
- clone your project to your local machine
- edit the packageprovider.c# script and change the name in the source (ie https://github.com/OneGet/ProviderSdk/blob/master/PackageProvider.cs#L64 )
- you should also change the project output name in the
.csproj
to something other than"SampleProvider.dll"
- and update the install-provider.ps1 script with the correct output name.
Clone the project locally and you can then add an upstream remote:
git clone https://github.com/YOURNAME/YOURPROJECT.git
git remote add remote upstream https://github.com/OneGet/provider-sdk-cs.git
Once you build the provider script, run the install-provider.ps1 script and it will copy the assembly to the right spot.
Then:
# need to run the community build.
> ipmo oneget-edge
# see if it loaded your provider assembly:
> get-packageprovider
PS C:\root\oneget\output\v45\Debug\bin> get-packageprovider
Name Version DynamicOptions
---- ------- --------------
YourProvider 1.0.0.0 {}
When you need to, you can always pull updates to the OneGet provider SDK by simply:
git pull upstream master