简体   繁体   English

隐藏在.vs文件夹中的applicationhost.config

[英]applicationhost.config inside hidden .vs folder

can some help me because i am really confused. 可以帮助我,因为我真的很困惑。 Using Visual studio, in my App folder i have a hidden folder named .vs , inside another folder config and next an applicationhost.config . 使用Visual Studio,在我的App文件夹中,我有一个名为.vs的隐藏文件夹,位于另一个文件夹config中 ,接下来是applicationhost.config

This config file, when used and for who is important to have? 此配置文件,在使用时以及对于谁重要? If i published my web app thought IIS, this file used in someway? 如果我以IIS的身份发布我的Web应用程序,该文件是否以某种方式使用?

I can see that inside this config file exist node applicationPools and sites like this that IIS have. 我可以看到在此配置文件中存在节点applicationPool和IIS具有的站点 So why this config file have global settings for IIS and is stored inside my Apps folder and not somewhere more 'outside'? 那么,为什么该配置文件具有IIS的全局设置,并且存储在我的Apps文件夹中,而不是存储在“外部”?

When i run local my app this config used? 当我在本地运行我的应用程序时使用此配置? Or only when is on IIS, or both? 或仅当在IIS上时才使用,或两者都用?

I really have no idea why and how use applicationhost.config but if i wanted to change user credentials that App run what should change? 我真的不知道为什么以及如何使用applicationhost.config,但是如果我想更改App运行的用户凭据,应该更改什么?

        <applicationPoolDefaults managedRuntimeLoader="v4.0">
           <processModel identityType="SpecificUser" userName="username" password="password" />
        </applicationPoolDefaults>

I'm not shure if you are locally testing your website using IIS or rather IIS Express . 如果您要使用IISIIS Express在本地测试您的网站,则我不确定。

  • The file in .vs is used to configure IIS Express , when you start your website from Visual Studio. 从Visual Studio启动网站时,.vs中的文件用于配置IIS Express
  • When you publish your app to IIS this file is ignored . 当您将应用程序发布到IIS时,将忽略此文件。

If you whant to publish settings for IIS, you can include those in the section <system.webServer> in your Web.config file. 如果您想发布IIS的设置,则可以在Web.config文件的<system.webServer>部分中包括这些设置 Those settings will then be added to the IIS configuration, you deploy to. 这些设置将被添加到您部署到的IIS配置中。

Hope this makes things a bit clearer. 希望这可以使事情变得更清晰。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 源代码管理中的.vs \ config \ applicationhost.config - .vs\config\applicationhost.config in source control Visual Studio 从哪里复制 .vs 文件夹中的 applicationhost.config 文件? - Where does Visual Studio copy the applicationhost.config file in the .vs folder from? 如果发布.vs / config / ApplicationHost.config,是否会影响IIS? - If I publish .vs/config/ApplicationHost.config, will it affect IIS? IIS CLI为我的项目生成带有site的applicationhost.config - IIS CLI generate applicationhost.config with site for my project visual studio在applicationhost.config中为virutalDirectory放错路径? - visual studio putting wrong path for virutalDirectory in applicationhost.config? 停止Visual Studio 2013修改IISExpress applicationHost.config - Stop Visual Studio 2013 modifying the IISExpress applicationHost.config IIS Express applicationHost.config 文件包含无效条目 - The IIS Express applicationHost.config file contains invalid entries 在applicationhost.config中列出的URL不在iis express中启动 - URL listed in applicationhost.config doesn't start in iis express 为什么 applicationhost.config 仍然被添加到源代码管理中,即使它在 gitignore 中 - Why is applicationhost.config still being added to source control even thought it's in gitignore 初始化 applicationhost.config 文件失败。 找不到 IIS Express - Initializing the applicationhost.config file failed. Cannot find IIS Express
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM