DYH.Extensions.CAD
3.0.0
dotnet add package DYH.Extensions.CAD --version 3.0.0
NuGet\Install-Package DYH.Extensions.CAD -Version 3.0.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="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DYH.Extensions.CAD" Version="3.0.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 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DYH.Extensions.CAD, 3.0.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=3.0.0
#tool nuget:?package=DYH.Extensions.CAD&version=3.0.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.CAD.Service (>= 3.0.0)
- IFox.CAD.ZCAD (>= 0.9.8)
-
.NETFramework 4.8
- DYH.Extensions.CAD.Service (>= 3.0.0)
- IFox.CAD.ACAD (>= 0.9.6)
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 | |
---|---|---|---|
3.0.0 | 272 | 6/12/2025 | |
2.5.2 | 139 | 5/26/2025 | |
2.5.1 | 139 | 5/26/2025 | |
2.5.0 | 65 | 5/24/2025 | |
2.4.0 | 140 | 5/17/2025 | |
2.3.0 | 231 | 5/13/2025 | |
2.2.0 | 227 | 5/13/2025 | |
2.1.0 | 156 | 4/29/2025 | |
2.0.5 | 230 | 4/29/2025 | |
2.0.4 | 233 | 4/28/2025 | |
2.0.2 | 228 | 4/28/2025 | |
2.0.1 | 230 | 4/28/2025 | |
2.0.0 | 235 | 4/28/2025 | |
1.4.10 | 148 | 4/28/2025 | |
1.4.9 | 147 | 4/28/2025 | |
1.4.8 | 134 | 4/27/2025 | |
1.4.7 | 77 | 4/26/2025 | |
1.4.6 | 150 | 4/21/2025 | |
1.4.5 | 155 | 4/21/2025 | |
1.4.4 | 184 | 4/17/2025 | |
1.4.3 | 187 | 4/16/2025 | |
1.4.2 | 156 | 4/10/2025 | |
1.4.0 | 158 | 4/8/2025 | |
1.3.0 | 159 | 4/8/2025 | |
1.2.0 | 175 | 4/8/2025 | |
1.1.9-preview | 158 | 4/8/2025 | |
1.1.8-preview | 159 | 4/8/2025 | |
1.1.7-preview | 150 | 4/8/2025 |
net48为AutoCad,net472为中望cad