gpt4 book ai didi

visual-studio - 与团队一起使用 IIS Express - 不使用本地主机时

转载 作者:行者123 更新时间:2023-12-03 15:04:09 25 4
gpt4 key购买 nike

我想我们一定错过了一个技巧,因为我们发现在团队中使用 IIS Express 非常痛苦。

问题是 IIS Express 的 applicationhost.config 本地存储在每个人的 MyDocuments 文件夹中,因此与 Visual Studio 解决方案分开,而不是在源代码管理中。

因此,当我们进行更改时,每个人都必须手动更新他们机器上的 applicationhost.config。

Visual Studio 对 applicationhost.config 文件的更新失败,因为我们没有使用本地主机,we have host entries给我们的环境不同的名字。

The local IIS URL specifed for web project has not been configured.

Creation of the virtual directory You must specify "localhost" for the server name

有没有更好的办法?

最佳答案

Refer to Here

UPDATE FOR VISUAL STUDIO 2015: As was pointed out to me in a comment by Søren Nielsen, in Visual Studio 2015 the IIS Express configuration files have moved. They are now separate per project, and stored in /{project folder}/.vs/config/applicationhost.config. Which is much better, in my opinion, just don't forget to add .vs/ to your .gitignore/.hgignore files!



其他方面 没有更好的方法。对于远程访问,您可以在开发机器上使用 IIS,而不是 IIS Express...

关于visual-studio - 与团队一起使用 IIS Express - 不使用本地主机时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8185540/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com