WebFormsForCore.AspNetCompiler.Library 1.6.0

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

WebFormsForCore AspNetCore Compiler

This is the WebFormsForCore version of the known aspnet_compiler.exe. It can be used to precompile WebFormsForCore and ordinary plain old ASP.NET WebForms apps targeting .NET Framework. In comparison to aspnet_compiler.exe, There is one additional argument -t [TargetFramework] that can be used to specify the target framework for compilation, and thus overwriting the value in web.config compilation section.

Installation

You can install aspnetcore_compiler either as a dotnet tool, by executing the command

dotnet tool install -g WebFormsForCore.AspNetCompiler

adn then run the tool with aspnetcore_compiler ....

Alternatively, you can use AspNetCore compiler by referencing the AspNetCoreCompiler.Build nuget package in your project and then using the <AspNetCoreCompiler> task in your project file like so:

<Target Name="PrecompileWeb">
  <AspNetCoreCompiler
      VirtualPath="/MyWebSite"
      MetabasePath="/"
      PhysicalPath="$(ProjectDir)"
      TargetPath="$(OutputPath)\Precompiled"
      TargetFramework="net10.0"
      TargetFrameworkMoniker="net10.0"
      BinFolder="bin"
      Updateable="true"
      Force="true"
      Debug="false"
      Clean="true"
      FixedNames="false"
      KeyFile=".."
      KeyContainer=".."
      DelaySign="false"
      AllowPartiallyTrustedCallers="false"
      />
</Target>

This task supports the same attributes as the AspNetCompiler task and also the TargetFramework attribute.

Multi targeting

If you have a project targeting .NET Framework and .NET Core at the same time, you can precompile it by specifying the comma or semicolon separated bin directories like -b bin,bin_dotnet and the corresponding target frameworks like -t net48,net10.0.

Product 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. 
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 WebFormsForCore.AspNetCompiler.Library:

Package Downloads
WebFormsForCore.Build

A port of ASP.NET WebForms to .NET 10

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0 55 6/28/2026