WGet.NET
WGet.NET copied to clipboard
Update to include the new JSON Structure with Explicit and TrustLevel
Tried to run your Nuget found there was extra data in my source json, Updated to include, Also cleaned up the Test App, to not use a static location on disk, as it failed on my machine. And better documented the outputs so they make sense to someone who didn't write the code originally
Example Output from Test app now
=== Winget Information ===
Winget Installed: True
Winget Version: 1.8.1911
Is Preview: False
Winget Info Version: 1.8.1911
=== Admin Settings Test ===
Total Admin Settings: 5
Sample Admin Setting: BypassCertificatePinningForMicrosoftStore
=== Package Search Test ===
Total Packages Found for 'git': 125
Sample Package Name: RepoZ
Sample Package ID: AndreasWascher.RepoZ
=== Upgradeable Packages Test ===
Total Upgradeable Packages: 67
Sample Upgradeable Package Name: Audacity 3.4.2
Sample Upgradeable Package ID: Audacity.Audacity
=== Installed Packages Test ===
Total Installed Packages: 444
Sample Installed Package Name: Windows Driver Package - Google, In.
Sample Installed Package ID: ARP\Machine\X64\092555911492C6959D2
=== Exact Installed Package Test ===
Microsoft Edge Package Found: Microsoft Edge
=== Package Download Test ===
Total Packages Found for '7zip.7zip': 3
Download Result for 7-Zip: True
=== Pinning Tests ===
Adding 7Zip as Pinned: True
Total Pinned Packages: 1
7-Zip 24.08 (x64): Blocking
Removing 7Zip as Pinned: True
Adding 7Zip as Pinned: True
Total Pinned Packages after version-specific pin: 1
7-Zip 24.08 (x64): Gating
Removing 7Zip as Pinned: True
Adding 7Zip as Pinned for Install: True
Removing 7Zip as Pinned: True
Adding 7Zip as Pinned Installed Version: True
Removing 7Zip as Pinned Installed Version: True
Resetting all Pins: True
=== Source Tests ===
Total Sources Installed: 2
Source: msstore (StoreEdgeFD)
Source: winget (Microsoft.Winget.Source_8wekyb3d8bbwe)
Source Update Status: True
Sources as JSON: [{"Name":"msstore","Arg":"https://storeedgefd.dsx.mp.microsoft.com/v9.0","Type":"Microsoft.Rest","Data":"","Identifier":"StoreEdgeFD","Explicit":false,"TrustLevel":["Trusted"]},{"Name":"winget","Arg":"https://cdn.winget.microsoft.com/cache","Type":"Microsoft.PreIndexed.Package","Data":"Microsoft.Winget.Source_8wekyb3d8bbwe","Identifier":"Microsoft.Winget.Source_8wekyb3d8bbwe","Explicit":false,"TrustLevel":["Trusted","StoreOrigin"]}]
=== Hash Test ===
Hash of 'AllSources.json': bdb656b7cd59487b85a33088400e62e950c2db6c4de2cdaaee916cd17b35c3ff
=== Package Comparison Tests ===
Package Tests: True
Execution Time: 00:00:29.6645129
End of Test! Press any button to exit.