windows console 控制台自启动

var fileName = Assembly.GetExecutingAssembly().Location;
System.Diagnostics.Process.Start(fileName);
原文地址:https://www.cnblogs.com/betterlife/p/11187159.html