ColorVision.Common 1.3.8.5

dotnet add package ColorVision.Common --version 1.3.8.5
                    
NuGet\Install-Package ColorVision.Common -Version 1.3.8.5
                    
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.5" />
                    
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.5" />
                    
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.5
                    
#r "nuget: ColorVision.Common, 1.3.8.5"
                    
#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.5
                    
#: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.5
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.Common&version=1.3.8.5
                    
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 211 10/27/2025
1.3.8.4 114 10/11/2025
1.3.8.3 184 9/30/2025
1.3.8.2 184 9/29/2025
1.3.8.1 191 9/25/2025
1.3.7.1 228 9/21/2025
1.3.6.2 265 9/15/2025
1.3.6.1 160 9/5/2025
1.3.5.2 200 8/30/2025
1.3.5.1 252 8/24/2025
1.3.4.2 157 8/20/2025
1.3.4.1 169 8/18/2025
1.3.3.2 504 7/24/2025
1.3.3.1 184 6/25/2025
1.3.2.7 170 6/24/2025
1.3.2.6 173 6/23/2025
1.3.2.5 174 6/17/2025
1.3.2.4 170 6/16/2025
1.3.2.3 185 6/4/2025
1.3.2.2 183 6/3/2025
1.3.2.1 177 6/2/2025
1.3.1.1 180 5/29/2025
1.2.4.1 180 5/26/2025
1.2.3.4 164 5/23/2025
1.2.3.3 177 5/22/2025
1.2.3.2 176 5/19/2025
1.2.3.1 267 5/12/2025
1.2.1.1 179 5/6/2025
1.1.12.2 203 4/9/2025
1.1.12.1 185 4/2/2025
1.1.11.5 203 3/22/2025
1.1.11.4 191 3/20/2025
1.1.11.3 184 3/13/2025
1.1.11.1 202 3/3/2025
1.1.10.7 142 2/21/2025
1.1.10.6 148 2/20/2025
1.1.10.5 158 2/14/2025
1.1.10.4 158 2/12/2025
1.1.10.3 147 2/12/2025
1.1.10.2 150 2/12/2025
1.1.10.1 153 2/11/2025
1.1.9.29 145 2/7/2025
1.1.9.28 157 2/6/2025
1.1.9.27 127 2/6/2025
1.1.9.26 126 2/5/2025
1.1.9.25 143 1/24/2025
1.1.9.24 120 1/22/2025
1.1.9.23 135 1/21/2025
1.1.9.22 131 1/21/2025
1.1.9.21 147 1/21/2025
1.1.9.20 143 1/20/2025
1.1.9.19 136 1/17/2025
1.1.9.18 105 1/15/2025
1.1.9.17 109 1/14/2025
1.1.9.16 128 1/14/2025
1.1.9.15 120 1/13/2025
1.1.9.14 128 1/13/2025
1.1.9.13 127 1/13/2025
1.1.9.12 126 1/13/2025
1.1.9.11 123 1/13/2025
1.1.9.10 126 1/13/2025
1.1.9.8 130 1/13/2025
1.1.9.7 144 1/10/2025
1.1.9.6 124 1/8/2025
1.1.9.5 131 1/8/2025
1.1.9.4 161 1/6/2025
1.1.9.3 157 1/6/2025
1.1.9.2 141 1/6/2025
1.1.9.1 152 1/6/2025
1.1.6.3 147 1/2/2025
1.1.6.2 150 12/25/2024
1.1.6.1 145 12/24/2024
1.1.5.6 152 12/19/2024
1.1.5.5 146 12/9/2024
1.1.5.4 148 12/4/2024
1.1.5.3 150 11/29/2024
1.1.5.2 150 11/28/2024
1.1.5.1 134 11/20/2024
1.1.4.38 150 11/16/2024
1.1.4.36 152 11/7/2024
1.1.4.35 151 11/7/2024
1.1.4.34 141 11/4/2024
1.1.4.33 156 11/4/2024
1.1.4.32 154 11/3/2024