Giter Site home page Giter Site logo

basicx-strgv / wget.net Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 8.0 5.36 MB

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

C# 80.46% CSS 12.79% HTML 1.37% JavaScript 4.17% Batchfile 0.04% PowerShell 0.65% Shell 0.53%
csharp dotnet dotnet-core dotnet-framework dotnet-standard dotnetcore library package-manager windows winget winget-cli wrapper

wget.net's People

Contributors

acedtimo avatar basicx-strgv avatar dependabot[bot] avatar mrhinsh avatar semgrep-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wget.net's Issues

A typo in the upgrade all command

Describe the bug
A typo in the 'upgrade all' command inside the WinGetPackageManager.cs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to WinGetPackageManager.cs
  2. Go to line: 29
  3. Observe => 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

GetInstalledPackages throws exception if no packages.

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?

Process buffer width is too short for output list parsing

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.

Winget Output Sample

After parsing the result could look like this:
Parsing Output Sample

List command requests user to accept source agreements

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:

  1. Go to WinGetPackageManager.cs.
  2. Go to lines: 20, 22, or 24.
  3. Observe that these lines do not include bypassing the source agreements.

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.

Add CreateNoWindow = true feature

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?

NETFramework Version=v4.8 Error

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?

Remote wget

Thanks for this libary,
can you provide the ability to use it remotly by passing a IP or FQDN param ?

.Net Standard Support

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.