ColorVision.FileIO 1.5.1.1

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

ColorVision.FileIO

功能定位

专用文件IO处理模块,负责ColorVision专有格式文件的读写操作。

主要优化说明(v1.3.12.24+)

  • 异常处理增强:所有文件流和二进制读取操作均已加 try-catch,异常会通过 Debug.WriteLine 记录,提升健壮性。
  • MagicHeader 常量统一:所有 CVCIE 文件头字符串均统一使用 MagicHeader 常量,避免硬编码。
  • 资源释放优化:所有文件流操作均使用 using,防止资源泄漏。
  • 内存分配保护:大文件读取时分配内存已加 OutOfMemoryException 保护,防止 OOM 崩溃。
  • 职责细化与冗余合并:部分复杂方法已建议细化为更小单元,冗余代码合并,提升可维护性。
  • 注释与文档:关键结构和方法已补充 XML 注释,便于二次开发和维护。

作用范围

文件处理引擎,为整个系统提供统一的文件访问接口。

主要功能点

  • CVRaw 文件处理 - ColorVision 原始图像格式的读写
  • CVCIE 文件处理 - ColorVision CIE 色彩数据格式的读写
  • 文件格式验证 - 确保文件完整性和格式正确性
  • 批量文件操作 - 支持大批量文件的高效处理
  • 文件压缩解压 - 数据文件的压缩存储和解压读取
  • 异步IO操作 - 支持异步文件读写,避免界面阻塞
  • 文件监控 - 支持文件系统监控和自动处理

与主程序的依赖关系

被引用方式:

  • ColorVision.Engine 引用用于流程中的文件操作
  • ColorVision.UI 引用用于界面文件显示

引用的程序集:

  • System.IO - 基础文件操作
  • 图像处理库 - 用于图像格式转换

使用方式

引用方式

<ProjectReference Include="..\ColorVision.FileIO\ColorVision.FileIO.csproj" />

在主程序中的启用

  • 通过文件服务自动注册
  • 流程节点中自动调用文件读写接口

开发调试

dotnet build Engine/ColorVision.FileIO/ColorVision.FileIO.csproj

目录说明

  • 包含专有文件格式的读写实现
  • 文件操作工具类和辅助方法

相关文档链接

维护者

ColorVision 数据团队

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • net10.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

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
1.5.1.2 60 10/7/2026
1.5.1.1 161 2/16/2026
1.3.6.1 234 12/23/2025
1.3.5.4 265 12/15/2025
1.3.5.3 436 11/24/2025
1.3.5.2 160 10/11/2025
1.3.5.1 317 8/24/2025
1.3.4.1 219 6/29/2025