Path too long error when building a windows azure service

后端 未结 7 1783
星月不相逢
星月不相逢 2020-12-04 19:42

I have been trying to publish my service to windows azure. The service consists of a single webRole, however I have added remote login functionality published it and built i

7条回答
  •  一生所求
    2020-12-04 20:05

    When you run a cloud service on the development fabric, the development fabric uses a temporary folder to store a number of files including local storage locations, cached binaries, configuration, diagnostics information and cached compiled web site content.

    By default this location is: C:\Users\\AppData\Local\dftmp

    Credit goes to Jim Nakashima of Microsoft : https://blogs.msdn.microsoft.com/jnak/2010/01/14/windows-azure-resolving-the-path-is-too-long-after-being-fully-qualified-error-message/

    In order to change the temporary folder, a user environment variable has to be created :

    It is named _CSRUN_STATE_DIRECTORY

    Give it a value of short named directory like :

    c:\AzureTemp
    

    Don't forget to restart Visual Studio in order to have the environmennt variables to be read again

    It fixed many compilations problem !

提交回复
热议问题