As the next generation of Microsoft's open source cross-platform development framework, ASP. NET core is attracting more and more developers to build modern Web applications based on them.
Currently, Azure APP Service also implements support for ASP. A user-developed ASP. NET Core Web app that is deployed to the cloud in the same way as a typical ASP. NET Web application can be executed smoothly.
However, currently Azure APP Service only supports the 32-bit ASP. NET core runtime, where the user's ASP. NET core application runs in the cloud as a 32-bit process. In most cases, it can support a user's web app to function properly, but in some scenarios, users will have the need to use the 64-bit ASP. NET Core runtime, such as applications that need to use more than 2GB of user-state virtual memory space, or application needs to load 64-bit local code, and so on. In this case, we can consider using a custom upload of the ASP. NET Core runtime environment.
The specific implementation is as follows:
- Download the. NET core SDK from Microsoft's. NET Core site (https://www.microsoft.com/net/core#windows) and install it into a 64-bit Windows Local machine.
Upload the installed dotnet folder (the default path to C:\Program files\dotnet) to the Azure App Service directory via FTP. For example/site/wwwroot/dotnet
3. Open the site Web. config file, and in the Aspnetcore section, change the Processpath to the newly uploaded dotnet.exe path and save it.
<system.webServer>
4. Restart the site.
For more information, please click here to view.
Running 64-bit ASP. NET Core applications in Azure WebApps