Microsoft.CSharp.Core.targets(84,5): error MSB6006: “csc.exe”已退出,代码为 -1066598274 问题

昨天还好好的代码,今天突然运行就报错了,搞了半天,终于好了,mark 一下。

 

报错的问题:系统报 Microsoft.CSharp.Core.targets(84,5): error MSB6006: “csc.exe”已退出,代码为 -1066598274。

 

解决方案:

nuget卸载  Microsoft.Net.Compilers.2.1.0  ,使用系统自带的CSC.exe 编译

posted @ 2022-02-25 10:10  不爱啰嗦的胜哥  阅读(775)  评论(0编辑  收藏  举报