GCFoundation.Components
1.0.0-preview.6
This is a prerelease version of GCFoundation.Components.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package GCFoundation.Components --version 1.0.0-preview.6
NuGet\Install-Package GCFoundation.Components -Version 1.0.0-preview.6
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="GCFoundation.Components" Version="1.0.0-preview.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GCFoundation.Components" Version="1.0.0-preview.6" />
<PackageReference Include="GCFoundation.Components" />
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 GCFoundation.Components --version 1.0.0-preview.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GCFoundation.Components, 1.0.0-preview.6"
#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 GCFoundation.Components@1.0.0-preview.6
#: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=GCFoundation.Components&version=1.0.0-preview.6&prerelease
#tool nuget:?package=GCFoundation.Components&version=1.0.0-preview.6&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GCFoundation.Components
GCFoundation.Components provides pre-built Razor components, tag helpers, and view components based on the GC Design System (GCDS) for Government of Canada web applications.
Features
- GCDS Tag Helpers – Easily render GCDS-compliant HTML elements (buttons, alerts, cards, navigation, etc.).
- View Components – Reusable UI building blocks for breadcrumbs, language toggles, headers, footers, and more.
- Localization Support – Built-in resource files for English and French.
- Static Web Assets – Bundled CSS/JS automatically served via
_content/GCFoundation.Components.
Installation
dotnet add package GCFoundation.Components
Quick Start
- Register services in
Program.cs:
builder.Services.AddGCFoundationComponents(builder.Configuration);
- Enable middleware:
app.UseGCFoundationComponents();
- Import tag helpers in
_ViewImports.cshtml:
@addTagHelper *, GCFoundation.Components
- Use components in your views:
<gcds-button type="submit">Submit</gcds-button>
Dependencies
GCFoundation.Commoncloudscribe.Web.NavigationHtmlAgilityPack
License
| Product | Versions 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
- cloudscribe.Web.Navigation (>= 8.0.0)
- GCFoundation.Common (>= 1.0.0-preview.6)
- HtmlAgilityPack (>= 1.12.1)
- System.Linq.Dynamic.Core (>= 1.6.0.2)
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.1.0-preview.1 | 47 | 4/8/2026 |
| 1.0.1-preview.1 | 54 | 4/1/2026 |
| 1.0.0-preview.9 | 54 | 4/1/2026 |
| 1.0.0-preview.8 | 50 | 3/31/2026 |
| 1.0.0-preview.7 | 47 | 3/26/2026 |
| 1.0.0-preview.6 | 63 | 3/9/2026 |
| 1.0.0-preview.5 | 63 | 2/3/2026 |
| 1.0.0-preview.4 | 67 | 1/21/2026 |
| 1.0.0-preview.3 | 64 | 1/14/2026 |
| 1.0.0-preview.2 | 60 | 1/13/2026 |
| 1.0.0-preview.1 | 550 | 12/1/2025 |