CSC: error CS0041: Unexpected error writing debug information — 'Operation is not supported on this platform.'

前端 未结 5 792
生来不讨喜
生来不讨喜 2021-02-04 05:52

Just downloaded Visual Studio Professional for Mac and I cannot seem to build anything as I always get the same error:

/Library/Frameworks/Mono.framework/Version         


        
5条回答
  •  隐瞒了意图╮
    2021-02-04 06:42

    This is a bug that will be fixed shortly. Meanwhile, you can edit your csproj file to add

    portable
    

    after the line with full or pdbonly

    Essentially, we want the DebugType property on Mac to be portable, which is supported by Roslyn's csc.exe on non-windows platforms, instead of pdb.

提交回复
热议问题