How To Publish Project In Visual Studio 2019 In Local For Beginner Step By Step

 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.

Selectproj

Step 5: After click on publish option then open a pop-up window. There are multiple options like azure, docker container registry, Folder, FTP/FTPS Server, Web Server, Import Profile. But we are publishing the project to a local folder. So select the Folder option and then click on next.

Selectoption

Step 6: Then asking for the folder path where the web application will be published. If you are creating the first time then you can create a folder by click on browse and make a new folder and then select a path.
Selectfolder


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.


Selectprofile


Step 8: This is the final step. Click on publish. Check the selected folder you will get all published files in the form of .dll.

These are the step to publish a web application in visual studio 2019 from scratch.



Previous
Next Post »