ColorVision.Common 1.3.8.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package ColorVision.Common --version 1.3.8.4
                    
NuGet\Install-Package ColorVision.Common -Version 1.3.8.4
                    
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.8.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.Common" Version="1.3.8.4" />
                    
Directory.Packages.props
<PackageReference Include="ColorVision.Common" />
                    
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 ColorVision.Common --version 1.3.8.4
                    
#r "nuget: ColorVision.Common, 1.3.8.4"
                    
#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.8.4
                    
#: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.8.4
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.Common&version=1.3.8.4
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.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.3.8.5 183 10/27/2025
1.3.8.4 111 10/11/2025
1.3.8.3 182 9/30/2025
1.3.8.2 183 9/29/2025
1.3.8.1 187 9/25/2025
1.3.7.1 227 9/21/2025
1.3.6.2 264 9/15/2025
1.3.6.1 158 9/5/2025
1.3.5.2 198 8/30/2025
1.3.5.1 251 8/24/2025
1.3.4.2 154 8/20/2025
1.3.4.1 165 8/18/2025
1.3.3.2 502 7/24/2025
1.3.3.1 182 6/25/2025
1.3.2.7 168 6/24/2025
1.3.2.6 172 6/23/2025
1.3.2.5 173 6/17/2025
1.3.2.4 167 6/16/2025
1.3.2.3 183 6/4/2025
1.3.2.2 182 6/3/2025
1.3.2.1 176 6/2/2025
1.3.1.1 179 5/29/2025
1.2.4.1 179 5/26/2025
1.2.3.4 161 5/23/2025
1.2.3.3 175 5/22/2025
1.2.3.2 174 5/19/2025
1.2.3.1 266 5/12/2025
1.2.1.1 178 5/6/2025
1.1.12.2 201 4/9/2025
1.1.12.1 183 4/2/2025
1.1.11.5 202 3/22/2025
1.1.11.4 189 3/20/2025
1.1.11.3 184 3/13/2025
1.1.11.1 201 3/3/2025
1.1.10.7 140 2/21/2025
1.1.10.6 147 2/20/2025
1.1.10.5 156 2/14/2025
1.1.10.4 157 2/12/2025
1.1.10.3 146 2/12/2025
1.1.10.2 149 2/12/2025
1.1.10.1 152 2/11/2025
1.1.9.29 144 2/7/2025
1.1.9.28 156 2/6/2025
1.1.9.27 126 2/6/2025
1.1.9.26 125 2/5/2025
1.1.9.25 142 1/24/2025
1.1.9.24 119 1/22/2025
1.1.9.23 134 1/21/2025
1.1.9.22 130 1/21/2025
1.1.9.21 146 1/21/2025
1.1.9.20 142 1/20/2025
1.1.9.19 135 1/17/2025
1.1.9.18 104 1/15/2025
1.1.9.17 108 1/14/2025
1.1.9.16 127 1/14/2025
1.1.9.15 118 1/13/2025
1.1.9.14 127 1/13/2025
1.1.9.13 126 1/13/2025
1.1.9.12 125 1/13/2025
1.1.9.11 121 1/13/2025
1.1.9.10 125 1/13/2025
1.1.9.8 129 1/13/2025
1.1.9.7 143 1/10/2025
1.1.9.6 123 1/8/2025
1.1.9.5 130 1/8/2025
1.1.9.4 160 1/6/2025
1.1.9.3 156 1/6/2025
1.1.9.2 140 1/6/2025
1.1.9.1 151 1/6/2025
1.1.6.3 146 1/2/2025
1.1.6.2 149 12/25/2024
1.1.6.1 144 12/24/2024
1.1.5.6 150 12/19/2024
1.1.5.5 145 12/9/2024
1.1.5.4 147 12/4/2024
1.1.5.3 149 11/29/2024
1.1.5.2 149 11/28/2024
1.1.5.1 133 11/20/2024
1.1.4.38 148 11/16/2024
1.1.4.36 151 11/7/2024
1.1.4.35 149 11/7/2024
1.1.4.34 140 11/4/2024
1.1.4.33 155 11/4/2024
1.1.4.32 153 11/3/2024