简体   繁体   中英

How to make asp.net app run with visual studio server instead of IIS?

I have downloaded this blog engine https://github.com/lelandrichardson/MiniBlog

I cannot run it within Visual Studio because it wants IIS : how to change this ?

If your project doesn't load in Visual Studio (it is greyed out), you need to manually edit the project file (MiniBlog.csproj) in a text editor. You just need to look for the UseIIS tag, and change its value to False :

<UseIIS>False</UseIIS>

When you do the above, Visual Studio should be able to load the project. It should now default to the Visual Studio web server.

Once you are able to load the project in Visual Studio, you can choose another web server, if you wish. You just need to right-click on the project in the tree view and then select Properties . From there, if you open the Web tab, you can choose the legacy Visual Studio Web Development Server, IIS Express (you may need to install this), or the Server version of IIS.

Just a note - I was unable to actually build the project that you linked to. There appear to be missing dlls, but that is out of the scope of this question.

尝试为Visual Studio添加IIS Express 7.5 http://www.microsoft.com/zh-cn/download/details.aspx?id=1038

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM