简体   繁体   中英

Using LocalHost IIS over Express; custom based

I have been in the situation where my rest of the team is using IIS express, where as I feel more comfortable with proper IIS.

I know I can change project file and direct to the IIS. However it comes with the limitation.

I cannot push project file changes to git because it will affect others.

Is there any nicest way to handle such thing so that I use IIS where as the rest is still on IISExpress?

在项目的属性中(在解决方案资源管理器中,右键单击属性),转到“ Web”选项卡,然后取消选中“将服务器设置应用于所有用户(存储在项目文件中)”,这样更改将保留在用户设置projectName中.csproj.user文件

Presuming you don't have a bunch of url-based dependencies the solution is easy -- just configure IIS manually to point at the folder on a different port than IIS.

Debugging is a little trickier to kick off -- you will need to run Visual Studio as administrator and then attach to the IIS process.

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