Packt.CSDotnet.Shared 7.0.0

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

Packt.CSDotnet.Shared

NuGet package: Packt.CSDotnet.Shared (version 7.0.0.0)

Short description

  • Shared utilities and extension helpers used by examples in the C#/.NET book. Designed for C# 11 and .NET 7+ examples in this repository.

Installation

dotnet add package Packt.CSDotnet.Shared --version 7.0.0.0

Or add the package reference to your project file:

<PackageReference Include="Packt.CSDotnet.Shared" Version="7.0.0.0" />

Quick usage

After installing, add the appropriate using statements for the types you need and use the provided helpers and extensions. Example:

using Packt.CSDotnet.Shared;

// call into utilities or extension methods provided by the package
// e.g. var result = SomeSharedHelper.DoWork();

Build & package

  • This project sets <GeneratePackageOnBuild>true</GeneratePackageOnBuild> so building in Release will produce a .nupkg automatically.
dotnet build -c Release
# or
dotnet pack -c Release

The generated package will be placed in bin/Release/net10.0/ (or the corresponding configuration/framework folder).

Metadata

Source and contribution

  • Source code for the package is in the repository under Chapter07/SharedLibrary.
  • Contributions or fixes can be made by editing the project and opening a pull request against this repo.

License

This package is released under the Microsoft Public License (MS-PL). See the SPDX entry: https://spdx.org/licenses/MS-PL.html

Contact

For questions about the package contents, see the repository or contact the package author listed in the package metadata.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.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
7.0.0 123 3/1/2026

Example NuGet library