weikio / nugetdownloader Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Add CI & CD pipelines to Azure DevOps.
TypeGenerator CI and CD -pipelines can be used as examples.
PluginFramework contains a feature which allows to use Nuget-packages as plugins. The code is available from here: https://github.com/weikio/PluginFramework/tree/master/src/Weikio.PluginFramework.Catalogs.NuGet
Changes
Move the PackageManagement code from PluginFramework into this separate repository. Project name and namespace should be Weikio.NugetDownloader.
Publish the Weikio.NugetDownloader as a separate Nuget-package.
Change PluginFramework so that uses the new Weikio.NugetDownloader package.
It should be possible to download the latest "stable", "alpha", "beta", "rc" etc. version easily.
Download(packageName) should default to the latest stable.
Download(packageName, "beta") should download the latest beta.
Though in some cases it should be possible to define the "ring" and also the major. So maybe something like:
Download(packageName, "3..beta")
Not sure about the syntax. Any ideas?
If you have a nuget based plugin that uses a TFM like "net6.0-windows10.0.19041" the nuget catalog initializations will fail even if the executable loading the plugins is targeting the same TFM. This is due to a difference in how the NuGetFramework parse calls behave. When these calls are made within the nuget downloader they return framework objects that don't pass the test:
var _compProvider = new CompatibilityProvider(new DefaultFrameworkNameProvider());
var compatible = _compProvider.IsCompatible(bal, baz);
NuGetFramework.Parse("net6.0-windows10.0.19041")
NuGetFramework.ParseFrameworkName("net6.0-windows10.0.19041", frameworkNameProvider);
Currently too many packages are downloaded based on the dependencies. For example runtime.native.System.Security.Cryptography.Apple.4.3.0, runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0 etc.
Here's some good ideas of how to get only the necessary packages: https://alistairevans.co.uk/2020/04/17/loading-plugins-extensions-at-run-time-from-nuget-in-net-core-part-1-nuget/
It should be possible (and easy) to download a specific version of Nuget package. The syntax should be something like:
Download("packagename", "packageversion").
It shouldn't matter if the packageversion is prerelease or not.
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.