Did Azure 1.8 (Oct 2012) change the way you configure multiple sites in the ServiceDefinition?

前端 未结 2 1273
礼貌的吻别
礼貌的吻别 2021-01-02 13:29

Before upgrading to 1.8 (Oct 2012) this is how we configured our sites in the ServiceDefinition.



        
相关标签:
2条回答
  • 2021-01-02 13:58

    In reply to sudhAnsu63's issue, I had the same problem where I would update the physicalDirectory attribute but it would reload the file and revert back to the old (now incorrect) configuration. I still don't understand why, but I noticed that VS would sometimes open multiple versions of the same file. I had to close all other files, make my edits, save and close the file, then it finally took my edits and started working. I believe editing the file externally to VS (like in notepad) might work. Oddly, once I got it working once, it does not seem to suffer this problem anymore.

    0 讨论(0)
  • 2021-01-02 14:17

    Yes, this was an official change, but I can't find any documentation about it other than what is contained in the upgrade report:

    "The physicalDirectory attribute '..\MyWebRole' of the Site element contains a relative path. This path is relative to the directory in which the target Service Definition file resides when packaged. In previous versions this file was located within the root project directory. In this version, by default, this file is located in the project output directory. You may need to update the relative path to reflect the new location of the target Service Definition file."

    0 讨论(0)
提交回复
热议问题