![]() |
VOOZH | about |
dotnet add package DNTCommon.Web.Core --version 14.8.0
NuGet\Install-Package DNTCommon.Web.Core -Version 14.8.0
<PackageReference Include="DNTCommon.Web.Core" Version="14.8.0" />
<PackageVersion Include="DNTCommon.Web.Core" Version="14.8.0" />Directory.Packages.props
<PackageReference Include="DNTCommon.Web.Core" />Project file
paket add DNTCommon.Web.Core --version 14.8.0
#r "nuget: DNTCommon.Web.Core, 14.8.0"
#:package DNTCommon.Web.Core@14.8.0
#addin nuget:?package=DNTCommon.Web.Core&version=14.8.0Install as a Cake Addin
#tool nuget:?package=DNTCommon.Web.Core&version=14.8.0Install as a Cake Tool
DNTCommon.Web.Core provides common scenarios' solutions for ASP.NET Core applications.
To install DNTCommon.Web.Core, run the following command in the Package Manager Console:
PM> Install-Package DNTCommon.Web.Core
You can also view the package page on NuGet.
The SkiaSharp library needs extra dependencies to work on Linux and containers. Please install the following NuGet
packages:
PM> Install-Package SkiaSharp.NativeAssets.Linux.NoDependencies
PM> Install-Package HarfBuzzSharp.NativeAssets.Linux
You also need to modify your .csproj file to include some MSBuild directives that ensure the required files are in a
good place. These extra steps are normally not required but seems to be some issues on how .NET loads them.
<Target Name="CopyFilesAfterPublish" AfterTargets="AfterPublish">
<Copy SourceFiles="$(TargetDir)runtimes/linux-x64/native/libSkiaSharp.so" DestinationFolder="$([System.IO.Path]::GetFullPath('$(PublishDir)'))/bin/" />
<Copy SourceFiles="$(TargetDir)runtimes/linux-x64/native/libHarfBuzzSharp.so" DestinationFolder="$([System.IO.Path]::GetFullPath('$(PublishDir)'))/bin/" />
</Target>
After installing the DNTCommon.Web.Core package, to register its default providers, call services.AddDNTCommonWeb();
method in
your Startup class.
using DNTCommon.Web.Core;
namespace MyWebApp
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddDNTCommonWeb();
}
ActionResults
Caching
no-cache, must-revalidate, no-store headers for the current Response.DependencyInjection
Drawing
Http
IUAParserService is the updated version of the UAParser library with the latest regexes.yaml file.MailKit library. It's able to use razor based email templates.ModelBinders
services.AddMvc(options => options.UsePersianDateModelBinder()) or just apply it to an specific
view-model [ModelBinder(BinderType = typeof(PersianDateModelBinder))].services.AddMvc(options => options.UseYeKeModelBinder()) or just apply it to an specific
view-model [ModelBinder(BinderType = typeof(YeKeModelBinder))].services.AddControllersWithViews(options => options.Filters.Add(typeof(ApplyCorrectYeKeFilterAttribute))).Mvc
Blazor
Schedulers
HostingEnvironment.QueueBackgroundWorkItem method.IScheduledTask interface. To register this new task, call services.AddDNTScheduler();
method in
your Startup class. AddDNTScheduler
method, adds this new task to the list of the defined tasks. Also its first parameter defines the custom logic of
the running intervals of this task. It's a callback method that will be called every second and provides the
utcNow value. If it returns true, the job will be executed.If you have multiple jobs at the same time, the order
parameter's value indicates the order of their execution.Security
X-Requested-With header has XMLHttpRequest value.Microsoft.AspNetCore.DataProtection.IDataProtector. It's only useful for
short-term encryption scenarios such as creating encrypted HTTP cookies.Directory Traversal & File Inclusion
attacks.app.UseAntiDos()
and services.Configure<AntiDosConfig>
to Startup.cs
file. Then complete the AntiDosConfig section of
the appsettings.json
file.services.Configure<AntiXssConfig>
to Startup.cs
file. Then complete the AntiXssConfig section of
the appsettings.json
file.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
Showing the top 2 popular GitHub repositories that depend on DNTCommon.Web.Core:
| Repository | Stars |
|---|---|
|
VahidN/DNTIdentity
A highly customized sample of the ASP.NET Core Identity
|
|
|
VahidN/DntSite
این پروژه، سورس کامل و در حال استفادهی وبسایت «داتنت تيپس» است
|
| Version | Downloads | Last Updated |
|---|---|---|
| 14.8.0 | 0 | 6/18/2026 |
| 14.7.0 | 116 | 6/13/2026 |
| 14.6.2 | 124 | 6/8/2026 |
| 14.6.1 | 108 | 6/6/2026 |
| 14.6.0 | 98 | 6/5/2026 |
| 14.5.3 | 218 | 6/3/2026 |
| 14.5.2 | 109 | 6/1/2026 |
| 14.5.1 | 104 | 6/1/2026 |
| 14.5.0 | 100 | 6/1/2026 |
| 14.4.1 | 112 | 5/30/2026 |
| 14.4.0 | 126 | 5/27/2026 |
| 12.8.1 | 903 | 2/7/2026 |
| 12.8.0 | 195 | 2/6/2026 |
| 12.7.1 | 227 | 2/1/2026 |
| 12.7.0 | 243 | 1/28/2026 |
| 12.6.0 | 234 | 1/25/2026 |
| 12.5.2 | 209 | 1/25/2026 |
| 12.5.1 | 217 | 1/24/2026 |
| 12.5.0 | 199 | 1/23/2026 |
| 12.4.1 | 318 | 1/6/2026 |