How to use Script resource to verify Packageprovider


There is no DSC resource available for packageprovider and I need to have Nuget package provider available. I’m not sure what is most effective way to use Test{} method since invocation of this method takes pretty long time and does not return $true or $false either.


You may want to provide some more details. “Test” could just check for a specific file, for instance; you mention “invocation of this method” but I’m not sure what method you’re writing about.