Blazor项目编译Docker问题汇总

    1.Debug可以但是编译时候报语法错误找不到某些函数

    error CS0103: The name 'xxx' does not exist in the current context
    error CS1002: ; expected
    error CS1513: } expected
    error: File not found
    error: Invalid character in source file

    答: 有概率是window下blazor文件格式不对,主要体现在换行符格式(Windows是CRLF,Linux是LF)导致编译/语法错误、找不到某些函数等异常, 需要统一格式和编码

    发表回复 0

    Your email address will not be published. Required fields are marked *