CPObjects.ValueObjects 2.0.0

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

CPObjects Project Modernization - Version 2.0.0

Overview

This document outlines the comprehensive modernization effort undertaken for the CPObjects project, upgrading it from legacy .NET Core frameworks to modern .NET 6.0 and .NET 8.0 targets. This update ensures better performance, security, and long-term maintainability.

🚀 What Changed

Framework Modernization

  • Removed Legacy Targets: Eliminated support for obsolete frameworks (netcoreapp2.0, netcoreapp2.1, netcoreapp2.2, netcoreapp3.0, netcoreapp3.1)
  • Added Modern Targets: Migrated to net6.0 and net8.0 for all projects
  • Version Bump: Updated all projects to version 2.0.0 to reflect the major modernization

Package Updates

Infrastructure Layer
  • Npgsql: Updated to 9.0.3 (latest PostgreSQL driver)
  • Microsoft.Data.SqlClient: Updated to 6.1.1 (modern SQL Server client)
  • Removed: Obsolete System.Data.SqlClient package
Dependency Injection & Web Framework
  • Autofac: Updated to 8.4.0 (latest IoC container)
  • ASP.NET Core: Migrated to FrameworkReference pattern for better performance
Data Access
  • Dapper: Updated to 2.1.66 (latest micro-ORM)
Testing
  • Moq: Updated to 4.20.72 (latest mocking framework)

Project Structure

All projects now maintain consistent structure with:

  • Modern target frameworks (net6.0;net8.0)
  • Automatic package generation enabled
  • Consistent versioning scheme (2.0.0)

📦 Updated Projects

1. CPObjects.ValueObjects

  • Target Frameworks: net6.0, net8.0
  • Dependencies: None (core value objects)
  • Version: 2.0.0

2. CPObjects.Commands

  • Target Frameworks: net6.0, net8.0
  • Dependencies: References CPObjects.ValueObjects
  • Version: 2.0.0

3. CPObjects.Infrastructure

  • Target Frameworks: net6.0, net8.0
  • Key Packages:
    • Npgsql 9.0.3
    • Microsoft.Data.SqlClient 6.1.1
  • Dependencies: References CPObjects.ValueObjects
  • Version: 2.0.0

4. CPObjects.Infra.Finder

  • Target Frameworks: net6.0, net8.0
  • Key Packages:
    • Dapper 2.1.66
    • Microsoft.Data.SqlClient 6.1.1
  • Dependencies: References CPObjects.Infrastructure, CPObjects.ValueObjects
  • Version: 2.0.0

5. CPObjects.Commands.UoW

  • Target Frameworks: net6.0, net8.0
  • Key Packages:
    • Autofac 8.4.0
    • Microsoft.AspNetCore.App (FrameworkReference)
  • Dependencies: References CPObjects.Commands, CPObjects.Infrastructure
  • Version: 2.0.0

6. CPObjects.Infra.Test

  • Target Frameworks: net6.0, net8.0
  • Key Packages:
    • Moq 4.20.72
  • Dependencies: References CPObjects.Commands, CPObjects.Infrastructure

🔧 Technical Improvements

Performance Enhancements

  • Modern Runtime: Leverages .NET 6/8 performance improvements
  • Framework References: Uses optimized ASP.NET Core framework references
  • Updated Drivers: Modern database drivers with better performance

Security Updates

  • Modern SQL Client: Migrated from deprecated System.Data.SqlClient to secure Microsoft.Data.SqlClient
  • Updated Dependencies: All packages updated to latest secure versions
  • Framework Security: Benefits from .NET 6/8 security enhancements

Developer Experience

  • Multi-targeting: Supports both LTS (.NET 6) and current (.NET 8) versions
  • Package Generation: Automatic NuGet package creation enabled
  • Consistent Versioning: Unified version scheme across all projects

⚠️ Compatibility Notes

.NET 6.0 Warnings

During build, you may see warnings about some 9.x packages not being officially tested with .NET 6.0. These are informational warnings that suggest using .NET 8.0 for optimal support, but they do not prevent functionality.

Breaking Changes

  • Minimum Framework: Projects now require .NET 6.0 or higher
  • Package Dependencies: Applications consuming these packages must target compatible frameworks
  • API Compatibility: All public APIs remain backward compatible

🏗️ Build & Deployment

Build Status

  • Successful Build: All projects compile successfully
  • Multi-target Support: Generates assemblies for both net6.0 and net8.0
  • Package Generation: Creates NuGet packages automatically

Build Command

dotnet build

Build Output

  • Projects successfully built in ~4 seconds
  • 128 informational warnings (non-blocking)
  • All target frameworks supported

📋 Migration Checklist

  • Update all project target frameworks
  • Modernize NuGet package references
  • Replace obsolete packages with modern alternatives
  • Update version numbers to reflect major changes
  • Verify successful build across all targets
  • Validate package compatibility
  • Update project references
  • Clean up deprecated dependencies

🎯 Benefits

For Developers

  • Modern Tooling: Access to latest .NET features and improvements
  • Better IntelliSense: Enhanced development experience
  • Performance: Faster compilation and runtime performance

For Applications

  • Security: Latest security patches and improvements
  • Performance: Better runtime performance and memory usage
  • Compatibility: Forward compatibility with future .NET versions

For Maintenance

  • Long-term Support: .NET 6 LTS support until November 2024
  • Future-proof: .NET 8 support until November 2026
  • Package Updates: Easier to maintain with modern package ecosystem

📞 Support

For questions or issues related to this modernization:

  1. Check build warnings (most are informational)
  2. Verify target framework compatibility in consuming applications
  3. Update consuming projects to support .NET 6.0+ if needed

Modernization Date: October 2025
Version: 2.0.0
Framework Support: .NET 6.0, .NET 8.0

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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on CPObjects.ValueObjects:

Package Downloads
CPObjects.Infrastructure

Package Description

CPObjects.Infra.Finder

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 259 10/1/2025
1.2.1 3,767 5/3/2020
1.2.0 1,073 5/1/2020
1.1.0 591 5/1/2020
1.0.0 575 4/30/2020