Here I will explain how to publish or deploy the website in local machine. To publish website first we need to check whether IIS installed in
our local machine or not and whether that IIS working properly or not because sometimes IIS will not work properly even that IIS already installed in our local machine for that reason we need to check all these conditions before going to publish or deploy our website in local machine.
Build click on that you will find Publish website click on that it will open one wizard in that it will ask target location i.e., the place to save the published application (ex: Create one folder on desktop or any location give that path by using browse button beside of that textbox).
have given in target location copy that folder and place it in wwwroot folder(path of that folder is C:\Inetpub\wwwroot)