ColorVision.Common
1.3.10.1
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 ColorVision.Common --version 1.3.10.1
NuGet\Install-Package ColorVision.Common -Version 1.3.10.1
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="ColorVision.Common" Version="1.3.10.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.Common" Version="1.3.10.1" />
<PackageReference Include="ColorVision.Common" />
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 ColorVision.Common --version 1.3.10.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ColorVision.Common, 1.3.10.1"
#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 ColorVision.Common@1.3.10.1
#: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=ColorVision.Common&version=1.3.10.1
#tool nuget:?package=ColorVision.Common&version=1.3.10.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ColorVision.Common
🎯 功能定位
通用基础框架库,提供整个ColorVision系统的基础接口定义、MVVM支持和通用工具类。
作用范围
作为最底层的通用库,为所有上层模块提供统一的接口规范和基础功能实现。
主要功能点
MVVM基础设施
- ViewModelBase - 视图模型基类,实现INotifyPropertyChanged
- ActionCommand - 支持Action委托的命令实现
- RelayCommand - 带参数的命令实现
- RelayCommand<T> - 泛型命令支持
核心接口定义
- IConfig - 配置对象统一接口,支持配置持久化
- IConfigSetting - 配置设置界面接口
- IMenuItem - 菜单项扩展接口
- IWizardStep - 向导步骤接口
- IFileProcessor - 文件处理器接口
- ISearch - 搜索功能接口
- IInitializer - 初始化器接口
通用工具类
- 观察者模式 - 事件订阅和通知机制
- 扩展方法 - 常用类型的扩展方法集合
- 辅助类 - 各种通用辅助功能
与主程序的依赖关系
被引用方式:
- ColorVision.UI - 使用基础接口和MVVM支持
- ColorVision.Engine - 使用配置接口和通用工具
- 所有插件和项目 - 依赖通用接口定义
引用的外部依赖:
- 仅依赖.NET基础库,无第三方依赖
使用方式
引用方式
<ProjectReference Include="..\ColorVision.Common\ColorVision.Common.csproj" />
MVVM示例
public class MyViewModel : ViewModelBase
{
private string _name;
public string Name
{
get => _name;
set => SetProperty(ref _name, value);
}
public RelayCommand SaveCommand { get; }
public MyViewModel()
{
SaveCommand = new RelayCommand(Save);
}
private void Save()
{
// 保存逻辑
}
}
配置接口使用
public class MyConfig : IConfig
{
public string ConfigName => "MyConfig";
public void Save()
{
// 保存配置
}
public void Load()
{
// 加载配置
}
}
开发调试
dotnet build UI/ColorVision.Common/ColorVision.Common.csproj
相关文档链接
维护者
ColorVision 核心团队
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on ColorVision.Common:
| Package | Downloads |
|---|---|
|
ColorVision.UI
Package Description |
|
|
ColorVision.ImageEditor
Package Description |
|
|
ColorVision.Scheduler
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.5.1 | 92 | 4/13/2026 |
| 1.5.4.1 | 101 | 3/31/2026 |
| 1.5.1.2 | 91 | 3/22/2026 |
| 1.5.1.1 | 129 | 2/16/2026 |
| 1.4.1.2 | 105 | 2/13/2026 |
| 1.4.1.1 | 114 | 2/3/2026 |
| 1.3.10.2 | 122 | 1/29/2026 |
| 1.3.10.1 | 119 | 1/14/2026 |
| 1.3.9.3 | 493 | 12/9/2025 |
| 1.3.9.2 | 242 | 11/22/2025 |
| 1.3.9.1 | 331 | 11/16/2025 |
| 1.3.8.5 | 260 | 10/27/2025 |
| 1.3.8.4 | 158 | 10/11/2025 |
| 1.3.8.3 | 225 | 9/30/2025 |
| 1.3.8.2 | 216 | 9/29/2025 |
| 1.3.8.1 | 226 | 9/25/2025 |
| 1.3.7.1 | 254 | 9/21/2025 |
| 1.3.6.2 | 305 | 9/15/2025 |
| 1.3.6.1 | 189 | 9/5/2025 |
| 1.3.5.2 | 235 | 8/30/2025 |
Loading failed