Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此页面显示如何从“发布 Windows Azure 应用程序”对话框启用分析。
如何在不使用该对话框的情况下配置分析?
我查看了我的服务配置和服务定义文件,但找不到任何与分析相关的设置。发布对话框中的复选框和单选按钮必须在某处配置一些设置文件;我就是找不到。
我找到了。分析确实在某处的设置文件中配置。
如果有人有同样的问题,下面是答案:
在 Azure 项目目录中,有一个名为“Profiles”的文件夹。该文件夹内有一些 .azurePubxml 文件(看起来)与您的服务配置一一对应。
在这些文件中是一个<AzureEnableProfiling>True</AzureEnableProfiling>可以设置为 True 或 False 的设置。
<AzureEnableProfiling>True</AzureEnableProfiling>
这就是您可以打开和关闭 Profiling 的方式,而无需使用 gui 工具发布到 Azure。