Chang.CSRazorLib 8.0.3

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

CSRazorLib

NuGet Build

Common C# helpers and extensions for ASP.NET Core and system utilities.
提供 ASP.NET Core View or Page 功能與 TagHelpers,簡化日常開發。


layout.cshtml 使用靜態資源

<script src="~/_content/Chang.CSRazorLib/js/main.js" asp-append-version="true"></script>

ViewImports.cshtml 加入以下指令

@addTagHelper *, CSRazorLib

更新說明

2025.09.29: 增加頁數顯示, 與 sorting column 的顯示 , 使用 Models/PagerModel.cs 做為分頁(pagination) model

在你的 MVC 使用方式如下:


<partial name="~/Areas/CSRazorLib/Views/Shared/_Pager.cshtml" model="Model" />


<sorting-header asp-for="Logs[0].CreateTime" pager="Model"></sorting-header>

Product Compatible and additional computed target framework versions.
.NET 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.
  • 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
8.0.3 224 10/5/2025
8.0.2 126 10/4/2025
8.0.1 193 9/29/2025