You will need:
- Static files (usually Content, Scripts and Views folders - but there can be any)
- Folder bin (the same result of compilation)
- Web.config file
You will also need an IIS server. This is a component of Windows, put (in the eight, in other Windows may be called differently) through the "Control Panel" - "Programs and Features" - "Turning On and Off Windows Components". On server Windows, you need the role of "Web server" or "Application server", I do not remember exactly.
All these files should be moved to the c: \ inetpub folder, its subfolder - or to any other place.
- If you copied files to the root inetpub - your site can already work.
- If you have created a subfolder, you need to go to the IIS settings, find the folder there, right click on it and select "Convert to application".
- If you put the file somewhere else, you need to create a website or application, and specify the virtual and physical paths for it (the virtual path is the address of the site, the physical path is where its files lie).
There is a way to automatically copy into the output folder the tree of files required by the web server, so as not to search for them manually. To do this, you need to build a project from the command line via msbuild with the "/ t: PipelineCopyAllFilesToOneFolderForMsdeploy / p: Configuration = Release / p: WPPAllFilesInSingleFolder = path \ to \ output \ folder" keys
You can also get an archive with these files suitable for deployment via msdeploy (IIS management service) - to do this, specify the "/ t: Package / p: Configuration = Release / p: PackageLocation = path \ to \ output \ folder" keys
In addition, if you just build a project with the key "/ t: Package", then all the files in one place can be found along the path obj * \ Package \ PackageTmp
Also, a set of files for deployment can be obtained through the studio itself, by clicking on the project, right-click and selecting the "Publish ..." ("Publish ...")