You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer DefaultInstallVersion over AvailableVersions[0]
The latest 1.10 preview version of the nuget provides a much improved experience, including an in-proc factory thunk dll that means you can use the built in projection flow for creating objects rather than having to CoCreate them yourself.
For DoSearchAsync; the field CatalogDefault is the one to use for the general "search everything for this string". You should be able to use that and have a single search per connected catalog.
RemotePackagesFromRemoteCatalogs is meant for combining multiple catalogs of available packages into one; it will never have local with it. This enum constantly confuses me as well. I suspect you want
AllCatalogs and to handle things that are installed differently.
LocalCatalogs :: Searches are only performed against installed items, but we will correlate installed items with catalogs provided
RemotePackagesFromRemoteCatalogs :: Combines the given catalogs into a single catalog, installed never considered.
RemotePackagesFromAllCatalogs :: Searches only the catalogs provided, but will correlated with installed items.
AllCatalogs :: Searches all catalogs and correlates.
For package equality you should also check that they come from the same catalog.
CheckInstalledStatus* is used for a more complete verification of the installation of a package. Having an InstalledVersion that is not null is probably good enough for most uses (when the composite has installed items allowed).
UpdateInterval:
Setting it to 0 means it will never be updated by your calls, although it will be initialized if not present regardless. I'm not sure what the lifetime of your connected catalog is, so it is hard for me to give a good suggestion.
Users should be able to search for packages on winget and install them quickly.
Needed for #89
The text was updated successfully, but these errors were encountered: