I want to test my asp.net MVC project (being developed using Visual Studio) on Local IIS Web server as the root application of a destinated website 开发者_JS百科rather than as a nested/child application under the root application.
Note: Normally Visual Studio forces us to create Virtual Directory under the website if we test the project on Local IIS Web server.
Edit 1: Don't suggest me to publish it to the root application please because it is a bit tedious. I am sorry, I am lazy.
You don't have to create a virtual directory. Create a separate site in IIS (may be with a different port, for ex: 8080) and point that site to your local project web folder.
Now in visual studio set project url to http://localhost:8080, and you are good to test the site at the root.
精彩评论