VOOZH about

URL: https://www.nuget.org/packages/DYH.Extensions.CAD/

⇱ NuGet Gallery | DYH.Extensions.CAD 10.6.0




👁 Image
DYH.Extensions.CAD 10.6.0

dotnet add package DYH.Extensions.CAD --version 10.6.0
 
 
NuGet\Install-Package DYH.Extensions.CAD -Version 10.6.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.6.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.6.0" />
 
Directory.Packages.props
<PackageReference Include="DYH.Extensions.CAD" />
 
Project file
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.6.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DYH.Extensions.CAD, 10.6.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.6.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.6.0
 
Install as a Cake Addin
#tool nuget:?package=DYH.Extensions.CAD&version=10.6.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DYH.Extensions.CAD

介绍

自用的库,省得每次给别人写东西时要复制来复制去

软件架构

依赖注入加补充工具类

使用说明
  1. 引用
  2. 在初始化时执行
DYH.CAD.Extensions.Initialize.Setup(cfg =>
{
 cfg.Assemblies = [Assembly.GetExecutingAssembly()];
 cfg.SettingsDir =
 Path.Combine(
 Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
 "DYHTest", "Settings");
});

其中SettingsDir是设置文件的目录,Assembies是需要扫描的程序集

  1. 服务注入 在服务上添加特性即可 [TransientDI][SingletonDI][ScopedDI]

服务有接口的,在后面添加接口类型参数,例如: [SingletonDI(typeof(IInterfaceType))]

  1. 用户设置 自己的用户设置类,在上面添加单例依赖注入[SingletonDI],并继承IUserSetting空接口 例如: [SingletonDI] public class DrawLineSettings : IUserSetting { ... } 使用IUserSettingService.Reload和Save函数即可读取和保存,并自动在多个CAD之间进行同步
Product Versions Compatible and additional computed target framework versions.
.NET Framework net472 net472 is compatible.  net48 net48 is compatible.  net481 net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0 119 4/6/2026
10.5.0 111 3/24/2026
10.4.0 103 3/24/2026
10.3.0 107 3/24/2026
10.2.0 105 3/24/2026
10.1.0 148 1/13/2026
10.0.0 479 12/9/2025
10.0.0-alpha 443 11/19/2025
9.0.9.2 232 10/9/2025
9.0.9.1 199 9/28/2025
9.0.9 183 9/28/2025
9.0.8.6 321 9/19/2025
9.0.8.5 221 9/4/2025
9.0.8.4 225 9/3/2025
9.0.8.3 212 8/21/2025
9.0.8.2 204 8/18/2025
9.0.8.1 213 8/11/2025
9.0.8 202 8/11/2025
9.0.7 217 7/17/2025
3.1.2 225 7/16/2025
Loading failed

切换依赖注入为DryIoc