The error is for tempCodeRunnerFile.cs. It must have Main
. Program.cs already does. And they both seem to be in same project. It would make sense. I get error even in VS 2019 if two files have Main() in the same project.
Based on update by OP Please remove One of the Main
or include only one file in csproj.
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.