[英]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.