Permalink
Browse files

Extended documentation about PackageManagementFunctions in writing pr…

…ovider (#351)
  • Loading branch information...
jirkapok authored and jianyunt committed May 1, 2018
1 parent f0756a0 commit f0e943924aba5afc5125fa0efe210e14b9e62512
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 f0e9439

Please sign in to comment.