Trying to create my .cspkg Azure package file, but

2019-07-19 16:52发布

When I try to package my Azure web app (to create the .cspkg and .cscfg files), I get the following error in my ServiceDefinition.csdef file:

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

Here's my .csdef file:

enter image description here

I'm assuming the error is referring to my <Site name="AzurePOCWebRole"> piece. I try adding physicalDirectory to <Site name="AzurePOCWebRole" physicalDirectory="../AzurePOCWebRole">:

enter image description here

And try to create the package again, but I get the same error and it reverts that change I just made back to <Site name="AzurePOCWebRole">:

enter image description here

QUESTION: What can I do to resolve this error and create my package?

1条回答
姐就是有狂的资本
2楼-- · 2019-07-19 17:45

I was editing the "automatically generated" version of ServiceDefinition.csdef, which wasn't apparent because it didn't indicate it wasn't the actual file, so whenever I rebuilt, it reverted this file back to the original ServiceDefinition.csdef's file, which I WASN'T editing.

查看更多
登录 后发表回答