Compile asp net to 64 bit


ASP.NET is a popular programming language used for building web applications. One common requirement in ASP.NET development is to the application to run as a 64-bit process. In this article, we will explore how to compile an ASP.NET application to target the 64-bit platform.

Compiling ASP.NET to 64-bit

By , ASP.NET applications are compiled to run as 32-bit . However, there are scenarios where running the application as a 64-bit process is necessary, such as when dealing with large datasets or when utilizing specific libraries that require a 64-bit environment.

To compile an ASP.NET application to target the 64-bit platform, you need to make a few changes in the project settings. Here's how you can do it:

Step 1: Open Project Properties

First, open your ASP.NET project in Visual Studio. Right-click on the project in the Solution Explorer and “Properties” from the context menu.

Step 2: Change Platform Target

In the project properties window, navigate to the “Build” tab. Under the “” section, you will find the “Platform target” dropdown. By default, it is set to “Any CPU”. Change it to “x64” to target the 64-bit platform.


By the “PlatformTarget” property to “x64” in the project file, you are instructing the compiler to a 64-bit executable for your ASP.NET application.

Step 3: Rebuild the Project

making the necessary changes, rebuild your ASP.NET project. This will compile the application specifically for the 64-bit platform.


Let's consider an example where we have an ASP.NET application that needs to be compiled as a 64-bit process. Here's how the project file would look like:


In this example, we have set the “PlatformTarget” property to “x64” within the “PropertyGroup” section of the project file. This ensures that the ASP.NET application will be compiled as a 64-bit process.


Compiling an ASP.NET application to run as a 64-bit process can be beneficial in certain scenarios. By following the steps outlined in this article, you can easily configure your ASP.NET project to target the 64-bit platform. Remember to rebuild the project after making the necessary changes to that the application is compiled .

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents