DYH.Extensions.CAD
2.1.0
dotnet add package DYH.Extensions.CAD --version 2.1.0
NuGet\Install-Package DYH.Extensions.CAD -Version 2.1.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="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DYH.Extensions.CAD" Version="2.1.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 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DYH.Extensions.CAD, 2.1.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.
#addin nuget:?package=DYH.Extensions.CAD&version=2.1.0
#tool nuget:?package=DYH.Extensions.CAD&version=2.1.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 | 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.8
- DYH.Extensions.CAD.Service (>= 2.1.0)
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 | |
---|---|---|---|
2.1.0 | 137 | 4/29/2025 | |
2.0.5 | 214 | 4/29/2025 | |
2.0.4 | 217 | 4/28/2025 | |
2.0.2 | 214 | 4/28/2025 | |
2.0.1 | 216 | 4/28/2025 | |
2.0.0 | 219 | 4/28/2025 | |
1.4.10 | 135 | 4/28/2025 | |
1.4.9 | 135 | 4/28/2025 | |
1.4.8 | 123 | 4/27/2025 | |
1.4.7 | 68 | 4/26/2025 | |
1.4.6 | 140 | 4/21/2025 | |
1.4.5 | 144 | 4/21/2025 | |
1.4.4 | 174 | 4/17/2025 | |
1.4.3 | 178 | 4/16/2025 | |
1.4.2 | 150 | 4/10/2025 | |
1.4.0 | 145 | 4/8/2025 | |
1.3.0 | 151 | 4/8/2025 | |
1.2.0 | 165 | 4/8/2025 | |
1.1.9-preview | 154 | 4/8/2025 | |
1.1.8-preview | 149 | 4/8/2025 | |
1.1.7-preview | 145 | 4/8/2025 |
添加GetBlockTableRecord方法