Core.AspNet.Web.WebPages.Razor 1.0.0.26262

There is a newer version of this package available.
See the version list below for details.
dotnet add package Core.AspNet.Web.WebPages.Razor --version 1.0.0.26262
                    
NuGet\Install-Package Core.AspNet.Web.WebPages.Razor -Version 1.0.0.26262
                    
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="Core.AspNet.Web.WebPages.Razor" Version="1.0.0.26262" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Core.AspNet.Web.WebPages.Razor" Version="1.0.0.26262" />
                    
Directory.Packages.props
<PackageReference Include="Core.AspNet.Web.WebPages.Razor" />
                    
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 Core.AspNet.Web.WebPages.Razor --version 1.0.0.26262
                    
#r "nuget: Core.AspNet.Web.WebPages.Razor, 1.0.0.26262"
                    
#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 Core.AspNet.Web.WebPages.Razor@1.0.0.26262
                    
#: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=Core.AspNet.Web.WebPages.Razor&version=1.0.0.26262
                    
Install as a Cake Addin
#tool nuget:?package=Core.AspNet.Web.WebPages.Razor&version=1.0.0.26262
                    
Install as a Cake Tool

Core.AspNet.Web.WebPages.Razor

System.Web.WebPages.Razor — the glue between BuildManager and Razor: the build provider that compiles a .cshtml at request time, the Razor host configuration, and the <system.web.webPages.razor> configuration section that carries @using imports and the page base type.

<PackageReference Include="Core.AspNet.Web.WebPages.Razor" Version="1.0.0" />

Assembly vs package name. The package is Core.AspNet.Web.WebPages.Razor; the assembly inside it is Core.Web.WebPages.Razor. .NET ships an empty System.Web.dll facade in Microsoft.NETCore.App and the host gives the shared framework precedence, so an app-local System.Web.dll is never loaded — the port therefore cannot use the original assembly names. Namespaces are unchanged, so your code and Inherits= attributes are unaffected; only web.config entries that name an assembly need updating.

What is inside

  • RazorBuildProvider — compiles .cshtml on first request, the way .aspx is compiled
  • WebPageRazorHost / WebRazorHostFactory — how a view becomes a class
  • System.Web.WebPages.Razor.Configuration — the <host>, <pages> and <namespaces> elements a Views/web.config uses

Async views

This package supplies the second half of @await support. Razor generates public override void Execute (), and you cannot await inside a synchronous void method. Views that contain an await are rewritten into an async method with a small synchronous Execute () that runs it; views without one are left exactly as Razor generated them.

The bridge blocks the request thread while the view's awaits complete. There is no deadlock risk — ASP.NET Core installs no SynchronizationContext — but a view awaiting slow I/O holds a thread-pool thread. Prefer awaiting in the action and passing the result to the view. See LIMITATIONS.

Documentation

PORTING-GUIDE.md (step-by-step migration from IIS) and LIMITATIONS.md (what differs from ASP.NET on .NET Framework, and why) ship in the repository.

Licence

Apache-2.0 AND MIT. Microsoft released the ASP.NET Web Stack - the sources this is built from - under the Apache License 2.0. Mono's AssemblyInfo.cs and the code written for this port are MIT. Both are permissive and compatible; the compound expression means the assembly contains code under both, not that you may pick one. THIRD-PARTY-NOTICES.md ships in the package and says which part is which.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Core.AspNet.Web.WebPages.Razor:

Package Downloads
Core.AspNet.Web.Mvc

ASP.NET MVC 4 on .NET 10 - controllers, Razor v2 views, model binding, TempData and async actions, plus [Route] attribute routing supplied by this port.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.26263 56 9/20/2026
1.0.0.26262 54 9/19/2026