gpt4 book ai didi

azure - 尝试创建我的 .cspkg Azure 包文件,但收到错误 "Need to specify the physical directory for the virtual path..."

转载 作者:行者123 更新时间:2023-12-02 07:14:55 26 4
gpt4 key购买 nike

当我尝试打包 Azure Web 应用程序(以创建 .cspkg 和 .cscfg 文件)时,我在 ServiceDefinition.csdef 文件中收到以下错误:

Need to specify the physical directory for the virtual path 'AzurePOCWebRole/' of role AzurePOCWebRole

这是我的 .csdef 文件:

enter image description here

我假设错误是指我的 <Site name="AzurePOCWebRole">片。我尝试添加 physicalDirectory<Site name="AzurePOCWebRole" physicalDirectory="../AzurePOCWebRole"> :

enter image description here

并尝试再次创建包,但我遇到了相同的错误,并且它将我刚刚所做的更改恢复为 <Site name="AzurePOCWebRole"> :

enter image description here

问题:我该如何解决此错误并创建我的包?

最佳答案

我正在编辑 ServiceDefinition.csdef 的“自动生成”版本,该版本并不明显,因为它没有表明它不是实际文件,因此每当我重建时,它都会将此文件恢复为原始 ServiceDefinition .csdef 的文件,我没有编辑该文件。

关于azure - 尝试创建我的 .cspkg Azure 包文件,但收到错误 "Need to specify the physical directory for the virtual path...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17553091/

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