ColorVision.Common 1.5.5.2

dotnet add package ColorVision.Common --version 1.5.5.2
                    
NuGet\Install-Package ColorVision.Common -Version 1.5.5.2
                    
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.5.5.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.Common" Version="1.5.5.2" />
                    
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.5.5.2
                    
#r "nuget: ColorVision.Common, 1.5.5.2"
                    
#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.5.5.2
                    
#: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.5.5.2
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.Common&version=1.5.5.2
                    
Install as a Cake Tool

ColorVision.Common

版本: 1.5.5.1 | 目标框架: .NET 8.0 / .NET 10.0 Windows

功能定位

ColorVision 系统的通用基础框架库,提供 MVVM 架构、接口定义、命令系统、工具类和基础服务。作为最底层库,被所有上层模块依赖。

主要功能

MVVM 架构

  • ViewModelBase — INotifyPropertyChanged 基类,支持 SetProperty / OnPropertyChanged
  • RelayCommand / RelayCommand<T> — 带参数的命令实现
  • ActionCommand — 支持 Action 命令 + Undo/Redo

接口定义

接口 用途
IMenuItem / IMenuItemProvider 菜单系统
IPlugin / IPluginBase 插件系统
IConfig / IConfigSettingProvider 配置管理
IView / IViewManager 视图管理
IStatusBarProvider / IStatusBarProviderUpdatable 状态栏
ISearch / ISearchProvider 搜索功能
IInitializer / InitializerBase 初始化系统
IWizardStep 向导步骤
IFileProcessor 文件处理
IThumbnailProvider 缩略图
IDockPanelProvider 停靠面板
IFeatureLauncher 功能启动器
IFeedbackLogCollector 反馈日志
IThirdPartyAppProvider 第三方应用

权限管理

  • AccessControl — 访问控制
  • RequiresPermissionAttribute[RequiresPermission(PermissionMode.Administrator)]
  • PermissionMode — None / User / Administrator

工具类

工具 用途
FileUtils 文件操作(EnsureDirectory、SafeDelete、GetFileSizeText)
ImageUtils 图像处理
Cryptography MD5/SHA256/AES 加密
RegexUtils / RegUtils 正则/注册表
WindowHelpers / WindowUtils 窗口操作
CollectionUtils / DictionaryUtils / StringUtils / EnumUtils 集合/字典/字符串/枚举
DebounceTimer / TaskConflator 异步工具(防抖、任务合并)
PlatformHelper 平台检测
CsvWriter CSV 写入
MemorySize 内存大小计算

原生方法

  • User32 / Dwmapi / Shlwapi — Win32 API 封装
  • Clipboard / Keyboard — 剪贴板/键盘操作
  • ShellFileOperations — Shell 文件操作
  • Win32DeviceMgmt — 设备管理

配置服务

  • ConfigService — 配置实例管理(GetRequiredService<T>()
  • WindowConfig — 窗口配置基类
  • ConfigSettingType — Property / Class / TabItem

其他

  • MenuItemBase — 菜单项基类(GlobalMenuBase 继承自它)
  • ViewGridManager — 视图网格管理
  • View — 视图基类
  • StatusBarMeta / StatusBarAlignment / StatusBarType — 状态栏元数据
  • SearchBase / SearchMeta / SearchType — 搜索基类
  • ThirdPartyAppManager — 第三方应用管理
  • DebounceTimer — 防抖定时器
  • TaskConflator — 任务合并器

依赖关系

  • 无外部依赖,仅依赖 .NET 基础库
  • 被引用: ColorVision.UI、ColorVision.Themes、ColorVision.ImageEditor、ColorVision.Scheduler 等所有 UI 模块

构建

dotnet build UI/ColorVision.Common/ColorVision.Common.csproj
Product 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.2 0 5/31/2026
1.5.5.1 136 4/13/2026
1.5.4.1 120 3/31/2026
1.5.1.2 109 3/22/2026
1.5.1.1 149 2/16/2026
1.4.1.2 125 2/13/2026
1.4.1.1 132 2/3/2026
1.3.10.2 140 1/29/2026
1.3.10.1 134 1/14/2026
1.3.9.3 507 12/9/2025
1.3.9.2 252 11/22/2025
1.3.9.1 347 11/16/2025
1.3.8.5 272 10/27/2025
1.3.8.4 173 10/11/2025
1.3.8.3 236 9/30/2025
1.3.8.2 228 9/29/2025
1.3.8.1 238 9/25/2025
1.3.7.1 267 9/21/2025
1.3.6.2 318 9/15/2025
1.3.6.1 201 9/5/2025
Loading failed