NetPro.TypeFinder
6.0.5-beta.16
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
This is a prerelease version of NetPro.TypeFinder.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NetPro.TypeFinder --version 6.0.5-beta.16
NuGet\Install-Package NetPro.TypeFinder -Version 6.0.5-beta.16
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetPro.TypeFinder" Version="6.0.5-beta.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetPro.TypeFinder --version 6.0.5-beta.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetPro.TypeFinder, 6.0.5-beta.16"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetPro.TypeFinder as a Cake Addin #addin nuget:?package=NetPro.TypeFinder&version=6.0.5-beta.16&prerelease // Install NetPro.TypeFinder as a Cake Tool #tool nuget:?package=NetPro.TypeFinder&version=6.0.5-beta.16&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NetPro.TypeFinder使用
使用
启用服务
public void ConfigureServices(IServiceCollection services, IConfiguration configuration = null){
services.AddFileProcessService(new TypeFinderOption{MountePath="./Plugin"});
}
建议从appsetting取配置,如下
"TypeFinderOption": {
"MountePath": "./Plugin" //windows默认目录: C:/opt/netpro ; linux环境:/opt/netpro
"CustomDllPattern":"^XXX.*"//自定义的程序dll正则表达式,此处表示XXX开头的程序集
}
构造函数注入使用
public class DemoController : ControllerBase{
private readonly INetProFileProvider _netProFileProvider;
private readonly ITypeFinder _typeFinder;
public DemoController(INetProFileProvider netProFileProvider,ITypeFinder typeFinder)
{
_netProFileProvider=_netProFileProvider;
_typeFinder=typeFinder;
}
public void Method1(){
_netProFileProvider.CreateFile("");//创建文件
typeFinder.GetAssemblies();//获取所有程序集
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.FileProviders.Physical (>= 5.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
-
net6.0
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.FileProviders.Physical (>= 6.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on NetPro.TypeFinder:
Package | Downloads |
---|---|
NetPro.Startup
Package Description |
|
NetPro.Core
Package Description |
|
NetPro.Proxy
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.16 | 1,443 | 7/24/2023 |
6.0.15 | 6,232 | 7/19/2022 |
6.0.14 | 5,787 | 7/10/2022 |
6.0.13 | 5,884 | 6/15/2022 |
6.0.12 | 5,844 | 6/15/2022 |
6.0.11 | 5,757 | 6/15/2022 |
6.0.10 | 5,763 | 6/11/2022 |
6.0.9 | 5,883 | 6/8/2022 |
6.0.8 | 5,643 | 5/26/2022 |
6.0.8-beta.3 | 500 | 5/24/2022 |
6.0.8-beta.2 | 128 | 5/24/2022 |
6.0.7 | 5,602 | 5/18/2022 |
6.0.6 | 5,446 | 4/28/2022 |
6.0.5 | 5,537 | 3/30/2022 |
6.0.5-beta.20 | 126 | 4/27/2022 |
6.0.5-beta.19 | 131 | 4/25/2022 |
6.0.5-beta.18 | 134 | 4/22/2022 |
6.0.5-beta.17 | 145 | 4/16/2022 |
6.0.5-beta.16 | 586 | 4/8/2022 |
6.0.5-beta.15 | 126 | 4/8/2022 |
6.0.5-beta.14 | 144 | 4/7/2022 |
6.0.5-beta.13 | 142 | 4/7/2022 |
6.0.5-beta.12 | 132 | 4/6/2022 |
6.0.5-beta.11 | 160 | 4/6/2022 |
6.0.5-beta.10 | 144 | 3/31/2022 |
6.0.5-beta.9 | 208 | 3/26/2022 |
6.0.5-beta.8 | 170 | 3/22/2022 |
6.0.5-beta.7 | 142 | 3/21/2022 |
6.0.5-beta.6 | 164 | 3/14/2022 |
6.0.5-beta.5 | 153 | 3/2/2022 |
6.0.5-beta.4 | 163 | 2/22/2022 |
6.0.5-beta.3 | 137 | 2/18/2022 |
6.0.5-beta.2 | 129 | 2/18/2022 |
6.0.5-beta.1 | 165 | 2/16/2022 |
6.0.4 | 3,436 | 2/10/2022 |
6.0.3 | 3,115 | 2/9/2022 |
6.0.3-beta.9 | 125 | 2/10/2022 |
6.0.3-beta.7 | 159 | 1/27/2022 |
6.0.3-beta.6 | 157 | 1/19/2022 |
6.0.3-beta.5 | 155 | 1/17/2022 |
6.0.3-beta.4 | 144 | 1/16/2022 |
6.0.3-beta.3 | 157 | 1/14/2022 |
6.0.3-beta.2 | 150 | 1/13/2022 |
6.0.3-beta.1 | 177 | 1/11/2022 |
6.0.2 | 1,775 | 1/6/2022 |
6.0.1 | 2,583 | 12/3/2021 |
3.1.11 | 2,175 | 11/19/2021 |
3.1.10 | 2,812 | 7/29/2021 |
3.1.9 | 3,631 | 7/1/2021 |
3.1.8 | 2,232 | 12/15/2020 |
3.1.6 | 3,372 | 9/16/2020 |
3.1.5 | 2,364 | 9/8/2020 |