标题中的所有内容都在显示,如果我尝试运行dotnet,则退出时不会显示任何消息,但是在DLL上使用dotnet exec会输出“分段错误”并退出。
Okay, so another developer working on the project found the problem. I caused a stack overflow (how convenient) on one of the custom attributes I made. Here's the code:
private string Message
{
get
{
return this.Message;
}
set
{
this.Message = value;
}
}
So basically, it was calling itself indefinitely. What I was supposed to do instead was create a second string to access it from:
private string Message
{
get
{
return this.message;
}
set
{
this.message = value;
}
}
private string message;
Hope it helps some of you!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.