[英]Got 2 errors with 'start' and 'update' error CS0111: Type 'Enemy' already defines a member called 'Start' with the same parameter types how can i fix?
[英]error CS0111: Type 'Program' already defines a member called 'Main with the same parameter types c#
错误是针对 tempCodeRunnerFile.cs。 它必须有Main
。 Program.cs 已经做到了。 而且他们似乎都在同一个项目中。 这是有道理的。 如果两个文件在同一个项目中具有 Main(),即使在 VS 2019 中我也会出错。
基于 OP 的更新,请删除Main
文件之一或仅在 csproj 中包含一个文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.