Roslyn failed to compile code

前端 未结 4 2066
臣服心动
臣服心动 2021-01-30 07:46

After I have migrated my project from VS2013 to VS2015 the project no longer builds. A compilation error occurs in the following LINQ statement:

static void Mai         


        
4条回答
  •  时光说笑
    2021-01-30 08:39

    This does appear to be a bug, or at the least a regression, in the Roslyn compiler. The following bug has been filed to track it:

    https://github.com/dotnet/roslyn/issues/4509

    In the meantime, Jon's excellent answer has a couple of work arounds.

提交回复
热议问题