basicx-strgv / wget.net Goto Github PK
View Code? Open in Web Editor NEWA WinGet wrapper library for .Net. Easily install, update, uninstall and more, from your application.
Home Page: https://basicx-strgv.github.io/WGet.NET/
License: MIT License
A WinGet wrapper library for .Net. Easily install, update, uninstall and more, from your application.
Home Page: https://basicx-strgv.github.io/WGet.NET/
License: MIT License
Describe the bug
A typo in the 'upgrade all' command inside the WinGetPackageManager.cs.
To Reproduce
Steps to reproduce the behavior:
private const string _upgradeAllCmd = "upgrade --al --accept-source-agreementsl";
Expected behavior
Command should be: private const string _upgradeAllCmd = "upgrade --all --accept-source-agreements";
Screenshots
N/A
Package Version
v4.1.0
Additional context
N/A
Why does packageManager.GetInstalledPackages(PackageId)
throw an exception when no packages are returned rather than null
?
WGetNET.WinGetActionFailedException: The search of installed packages failed.
---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WGetNET.HelperClasses.ProcessOutputReader.ToPackageList(String[] output, PackageAction action, String sourceName)
at WGetNET.WinGetPackageManager.GetInstalledPackages(String packageName)
--- End of inner exception stack trace ---
at WGetNET.WinGetPackageManager.GetInstalledPackages(String packageName)
at MigrationTools.Host.Services.DetectVersionService2.InitialiseService() in C:\Users\MartinHinshelwood(He\Source\repos\azure-devops-migration-tools\src\MigrationTools.Host\Services\DetectVersionService2.cs:line 70
Is there another way to check this?
I have some users reporting a hang on initilisation of the tool on Windows Server and some Windows 11 platforms.
I assume Winget is not installed.
The winget process that gets startet, uses the default buffer width.
The default buffer width is too short and because of this winget does not output the full name and id of some packages.
This results in incomplete parsing of the name and/or id of some packages.
I have an issue where if I use --exact there are no packages returned, even though the string exactly matches the package. This means that GetInstalledPackages
is not working as intended.
Also submitted to Winget:
Describe the bug
Calling the 'list' command in winget prompts the user to accept the source agreements. The 'list' command currently does not include the '--accept-source-agreements' flag.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In order to bypass the source agreements when calling the 'list' command, I'd expect the command to include the ''--accept-source-agreements" flag.
Screenshots
N/A
Package Version
4.1.0
Additional context
I believe that only recently the 'list' command prompts for the source agreements, but I'm unable to verify when this has been added/changed.
I can't find any documentation or code examples, please tell me how to use this wrapper
Hi. Would it be possible to add the following launch property to the winget executable?
CreateNoWindow = true
Or some similar functionality to prevent a cmd window from appearing whenever the winget commands run?
Getting a "Could not install package 'WGet.NET 2.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author"
When trying to import the nuget package to a net framework 4.8 project
Anygot got a quick fix?
Thanks for this libary,
can you provide the ability to use it remotly by passing a IP or FQDN param ?
It would be great if you could support .NET standard!
My application MUST use .NET 4 as it uses Microsoft libraries that are full framework :( but I have most of my libraries set to ".NET Standard" so that I can use them in both core and full framework where necessary.
winget --info
Unneeded data fields:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.