【问题标题】:What does the "-site" option for aspnet_regiis.exe do?aspnet_regiis.exe 的“-site”选项有什么作用?
【发布时间】:2020-11-13 21:41:10
【问题描述】:

我到处搜索,找不到任何关于此的文档。我的猜测是它可能继承了机器密钥?提前致谢。

<MsDeploySourceManifest Include="runCommand">
  <path>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -pe "connectionStrings" -site $(DeployIisAppPath) -app "/"</path>
  <waitInterval>2000</waitInterval>
  <dontUseCommandExe>True</dontUseCommandExe>
  <successReturnCodes>0</successReturnCodes>
  <AdditionalProviderSettings>waitInterval;dontUseCommandExe;successReturnCodes</AdditionalProviderSettings>
</MsDeploySourceManifest>

【问题讨论】:

    标签: msbuild asp.net-4.5 aspnet-regiis.exe


    【解决方案1】:

    -site-pe 选项的可选参数。根据可执行文件:

    [-site site-name-or-ID] -app 中指定的虚拟路径的站点。如果未指定,将使用默认网站。

    这应该对应于在 IIS 的“站点”目录中找到的站点名称。如前所述,如果您不指定此参数,它将默认使用“默认网站”:

    【讨论】:

      猜你喜欢
      • 2011-04-02
      • 2019-06-18
      • 2020-01-18
      • 2016-11-02
      • 2012-08-03
      • 2012-02-17
      • 2017-01-11
      • 2013-09-02
      • 2019-09-06
      相关资源
      最近更新 更多