Introduction
Before creating or explaining How to publish Asp.net web application?. Firstly we need to check why it is necessary to publish.
After creating or after the development process project needs to deploy a web server but you can not putting the same project file into the webserver.
Why need to publish a web application?
There is a need to maintain versioning as well as .dll requires deploying a web application on the webserver. All the features included in that .dll files. You can directly put that .dll files into the bin folder of that project. Now we can see how to publish a web application.
How to publish Asp.net web application?
Step 1: Creating a project on visual studio. Select Asp.net Web application(.NET Framework) and click on next. After selecting the project name and solution name.
Step 2: Then select either MVC or Web Form Project. Here I am selecting the MVC project for your reference.
Step 3: Add one Employeecontroller in the project by right click on the Controller folder and add view.
These are all very basic concepts.
Step 4: Right-click on the project and then select publish option. Check on the below image you get an idea.
Step 7: This the process for selecting the path location where to publish all web application files and then create a profile. You can see two options in the summary tab.
1. Delete exiting files.
2.Configuration.
Click on the edit option or pencil icon on the right side. Then open pop-up window in that configure dropdown has two options Release and Debug. Select Release mode. In the below check all check box. Click on configure on precompile option and select the Do not merge option.
ConversionConversion EmoticonEmoticon