Compiler Error Message: CS1009: Unrecognized escape sequence

后端 未结 4 1199
名媛妹妹
名媛妹妹 2021-01-28 12:46
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your          


        
4条回答
  •  逝去的感伤
    2021-01-28 13:04

    The problem here (as mentioned in Bo Flexson's answer) is with auto-generated code, not physically writing a view with a (large) odd number of slash characters in it.

    One solution, described in answer to this question is to simply recompile and redeploy.

    For me this didn't work because the problem appears to have been down to the build order of our large solution. Initially I stumbled upon a solution by making a few minor changes to a separate view in a project deeper in the hierarchy which forced it to rebuild the project with the problematic view properly. Since then I've had much more luck rebuilding projects one by one rather than relying on a full solution rebuild to get the order right.

提交回复
热议问题