adriancs.AutoRoute 1.0.0

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

Auto-Route

Automatically Route All Pages at Once in ASP.NET WebForms

The idea of the code behind: https://github.com/adriancs2/Auto-Route/wiki

How to Use This Library

First, add the Nuget package of adriancs.AutoRoute.

Then, add a Global Application Class into the project:

alternate text is missing from this package README image

Open the file:

alternate text is missing from this package README image

To route ASPX pages at specific folder:

protected void Application_Start(object sender, EventArgs e)
{
    // route all aspx pages in the project
    // scan through all folders (including folders of javascript, images, css)
    AutoRoute.RouteAllPages();

    // route all aspx pages in specific folder, including sub-folders
    AutoRoute.Route("~/pages", true);

    // route all aspx pages in specific folder, do not include pages in sub-folders
    AutoRoute.Route("~/pages", false);
}
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.

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
1.0.0 218 5/2/2023

Automatic route all ASP.NET pages (.aspx).