DYH.Extensions.CAD
10.5.0
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 DYH.Extensions.CAD --version 10.5.0
NuGet\Install-Package DYH.Extensions.CAD -Version 10.5.0
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="DYH.Extensions.CAD" Version="10.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DYH.Extensions.CAD" Version="10.5.0" />
<PackageReference Include="DYH.Extensions.CAD" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DYH.Extensions.CAD --version 10.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DYH.Extensions.CAD, 10.5.0"
#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.
#:package DYH.Extensions.CAD@10.5.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DYH.Extensions.CAD&version=10.5.0
#tool nuget:?package=DYH.Extensions.CAD&version=10.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DYH.Extensions.CAD
介绍
自用的库,省得每次给别人写东西时要复制来复制去
软件架构
依赖注入加补充工具类
使用说明
- 引用
- 在初始化时执行
DYH.CAD.Extensions.Initialize.Setup(cfg =>
{
cfg.Assemblies = [Assembly.GetExecutingAssembly()];
cfg.SettingsDir =
Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"DYHTest", "Settings");
});
其中SettingsDir是设置文件的目录,Assembies是需要扫描的程序集
- 服务注入 在服务上添加特性即可 [TransientDI][SingletonDI][ScopedDI]
服务有接口的,在后面添加接口类型参数,例如: [SingletonDI(typeof(IInterfaceType))]
- 用户设置 自己的用户设置类,在上面添加单例依赖注入[SingletonDI],并继承IUserSetting空接口 例如: [SingletonDI] public class DrawLineSettings : IUserSetting { ... } 使用IUserSettingService.Reload和Save函数即可读取和保存,并自动在多个CAD之间进行同步
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- DYH.Extensions.DryIoc (>= 1.0.0)
- IFox.CAD.ZCAD (>= 0.9.8.1)
- Mapster (>= 7.2.0)
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.8
- DYH.Extensions.DryIoc (>= 1.0.0)
- IFox.CAD.ACAD (>= 0.9.8.1)
- Mapster (>= 7.2.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.6.1 | 146 | 7/23/2026 |
| 10.6.0 | 152 | 4/6/2026 |
| 10.5.0 | 130 | 3/24/2026 |
| 10.4.0 | 120 | 3/24/2026 |
| 10.3.0 | 129 | 3/24/2026 |
| 10.2.0 | 123 | 3/24/2026 |
| 10.1.0 | 168 | 1/13/2026 |
| 10.0.0 | 495 | 12/9/2025 |
| 10.0.0-alpha | 459 | 11/19/2025 |
| 9.0.9.2 | 246 | 10/9/2025 |
| 9.0.9.1 | 212 | 9/28/2025 |
| 9.0.9 | 199 | 9/28/2025 |
| 9.0.8.6 | 335 | 9/19/2025 |
| 9.0.8.5 | 236 | 9/4/2025 |
| 9.0.8.4 | 237 | 9/3/2025 |
| 9.0.8.3 | 225 | 8/21/2025 |
| 9.0.8.2 | 216 | 8/18/2025 |
| 9.0.8.1 | 227 | 8/11/2025 |
| 9.0.8 | 215 | 8/11/2025 |
| 9.0.7 | 231 | 7/17/2025 |
Loading failed
切换依赖注入为DryIoc