YAFNET.RazorPages
4.0.7
dotnet add package YAFNET.RazorPages --version 4.0.7
NuGet\Install-Package YAFNET.RazorPages -Version 4.0.7
<PackageReference Include="YAFNET.RazorPages" Version="4.0.7" />
<PackageVersion Include="YAFNET.RazorPages" Version="4.0.7" />
<PackageReference Include="YAFNET.RazorPages" />
paket add YAFNET.RazorPages --version 4.0.7
#r "nuget: YAFNET.RazorPages, 4.0.7"
#:package YAFNET.RazorPages@4.0.7
#addin nuget:?package=YAFNET.RazorPages&version=4.0.7
#tool nuget:?package=YAFNET.RazorPages&version=4.0.7
YAF.NET Razor Pages Client Library
Prerequisites:
- ASP.NET Core 10.0 (YAF v4.x)
Quick Guide
Add the YAF Nuget Packages
- Install the YAFNET.RazorPages Package via Nuget Browser or the console
> dotnet add package YAFNET.RazorPages
- Depending on which Data Provider you want top use add the package ..
YAFNET.Data.SqlServer Package via Nuget Browser or the console
> dotnet add package YAFNET.Data.SqlServer
YAF.Data.MySQL Package via Nuget Browser or the console
> dotnet add package YAFNET.Data.MySQL
YAFNET.Data.PostgreSQL Package via Nuget Browser or the console
> dotnet add package YAFNET.Data.PostgreSQL
YAFNET.Data.Sqlite Package via Nuget Browser or the console
> dotnet add package YAFNET.Data.Sqlite
Getting Started
Program.cs
In the Program.cs add the following.
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory());
builder.Host.ConfigureYafLogging();
builder.Host.ConfigureContainer<ContainerBuilder>(containerBuilder =>
{
containerBuilder.RegisterYafModules();
});
builder.Services.AddRazorPages(options =>
{
options.Conventions.AddAreaPageRoute("Forums", "/SiteMap", "/Sitemap.xml");
}).AddYafRazorPages(builder.Environment);
builder.Services.AddYafCore(builder.Configuration, "/Forums");
// only needed for blazor
builder.Services.AddServerSideBlazor();
var app = builder.Build();
....
app.RegisterAutofac();
app.UseAntiXssMiddleware();
app.UseStaticFiles();
app.UseSession();
app.UseYafCore(BoardContext.Current.ServiceLocator, app.Environment);
app.UseRobotsTxt(app.Environment);
app.MapRazorPages();
app.MapAreaControllerRoute(
name: "default",
areaName: "Forums",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.MapControllers();
app.MapHub<NotificationHub>("/NotificationHub");
app.MapHub<ChatHub>("/ChatHub");
await app.RunAsync();
Now the Forum is ready and you can add a link to your _Layout.cshtml
<li class="nav-item">
<a class="nav-link" asp-area="Forums" asp-page="/Index">Forums</a>
</li>
Community Support Forum
See a real live YAF Forum by visiting the YetAnotherForum.NET community support forum: https://yetanotherforum.net/forums. Also, get your questions answered by the YAF community.
License
Yet Another Forum.NET is licensed under the Apache 2.0 license.
Yet Another Forum Community Support
If you have any questions, please visit the YAF Community Support forum: https://yetanotherforum.net/forums, or visit the Wiki for More Informations.
| Product | Versions 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. |
-
net10.0
- HtmlProperties (>= 1.0.0)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 10.0.10)
- Microsoft.Extensions.FileProviders.Embedded (>= 10.0.10)
- YAFNET.Core (>= 4.0.7)
- YAFNET.Types (>= 4.0.7)
- YAFNET.Web (>= 4.0.7)
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 |
|---|---|---|
| 4.0.7 | 41 | 8/2/2026 |
| 4.0.6 | 162 | 6/20/2026 |
| 4.0.5 | 246 | 4/26/2026 |
| 4.0.4 | 314 | 1/10/2026 |
| 4.0.2 | 416 | 9/24/2025 |
| 4.0.1 | 291 | 8/31/2025 |
| 4.0.0 | 592 | 3/16/2025 |
| 4.0.0-rc04 | 540 | 11/17/2024 |
| 4.0.0-rc03 | 798 | 7/6/2024 |
| 4.0.0-rc02 | 293 | 5/29/2024 |
| 4.0.0-rc01 | 282 | 5/29/2024 |
| 4.0.0-beta09 | 234 | 5/18/2024 |
| 4.0.0-beta07 | 257 | 3/28/2024 |
| 4.0.0-beta05 | 263 | 2/28/2024 |
YetAnotherForum.NET Changelog
====================
# YetAnotherForum.NET v4.0.7
* [NEW] Setting to enable/disable show similiar topics when creating a new topic
* [NEW] full editor button in quick reply (resolves #1728)
* [FIXED #1724] Language Editor
* [FIXED] install/update bbcode extensions on linux
* [FIXED] Login accepted any password for accounts still using legacy Clear/Encrypted password formats
* [FIXED] Any logged-in user could move or split another user's post via the Move Message page
* [FIXED] Any logged-in user could restore/undelete an arbitrary deleted post
* [FIXED] BBCode [url=...] allowed javascript:/data: links to bypass the URL scheme filter
* [FIXED] X-Forwarded-For parsing could not resolve a client IP behind multiple proxy hops, allowing IP bans to be bypassed
* [FIXED] Reputation/Friends/Ignored User actions were vulnerable to CSRF via simple GET links
* [FIXED] Poll controller allowed unauthenticated access and could throw on invalid poll/topic/forum ids
* [FIXED] Forum delete/cleanup background tasks could report as finished while still running, allowing overlapping runs
* [FIXED] Chat hub connection tracking was not thread-safe, causing intermittent errors under concurrent use
* [FIXED] "Hide my online status" user flag had no effect on SQLite installs
* [FIXED] Active/message/private message cleanup queries never deleted anything on MySQL/PostgreSQL
* [FIXED] Half/quarter-hour timezone offsets (e.g. India, Iran, Nepal) were truncated to whole hours
* [FIXED] Reporting a message for the first time could throw an error under concurrent reports
* [FIXED] A transient database error during posting could silently disable the anti-flood delay
* [FIXED] Navigating away from the install wizard mid-setup returned a blank page instead of redirecting
* bug fixes