WebFormsForCore.AspNetCompiler 1.6.2

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global WebFormsForCore.AspNetCompiler --version 1.6.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local WebFormsForCore.AspNetCompiler --version 1.6.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=WebFormsForCore.AspNetCompiler&version=1.6.2
                    
nuke :add-package WebFormsForCore.AspNetCompiler --version 1.6.2
                    

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.

This package has no dependencies.

Version Downloads Last Updated
1.6.3 84 9/16/2026
1.6.2 101 9/11/2026
1.6.1 91 9/11/2026
1.6.0 168 6/28/2026