Permalink
Browse files

Merge pull request #356 from OneGet/master

Sync Master and WIP in sync
  • Loading branch information...
jianyunt committed May 1, 2018
2 parents 8e1f18e + 1be4982 commit 173df840e345d0a753dd0a9dec684e394f1b22ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/writepowershellbasedprovider.md
@@ -179,7 +179,7 @@ function Find-Package {
In the above example, we enumerate files with extension .png,
check if the file name matches what a user is looking for ($name), construct the swidtag object and return it to OneGet.
`New-SoftwareIdentity` is the utility function for you to use. It's defined the PackageProviderFunctions.psm1. You can find it under $env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement. SoftwareIdentity object is the protocol that provider and OneGet communicate. It is also used as the output object of OneGet cmdlets.
`New-SoftwareIdentity` is the utility function for you to use. It's defined the PackageProviderFunctions.psm1. You can find it under $env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement. SoftwareIdentity object is the protocol that provider and OneGet communicate. It is also used as the output object of OneGet cmdlets. Functions from PackageProviderFunctions will be accessible to your provider automaticaly without any additional action.
As you can see, SoftwareIdentity object contains name and version of package, source location where the package comes from, and summary description, etc.
Ignore FastPackageReference for now. We will discuss it later.

0 comments on commit 173df84

Please sign in to comment.