C
C#8mo ago
MorryMar

files

how do i create a new c# file to code in?
80 Replies
Angius
Angius8mo ago
You just... do? MyCoolNewFile.cs
MorryMar
MorryMar8mo ago
i just did 1
No description
MorryMar
MorryMar8mo ago
but why is there a error
Angius
Angius8mo ago
Well, what does it say?
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
MorryMar
MorryMar8mo ago
No description
MorryMar
MorryMar8mo ago
so for every code file i need to make a new project?
Angius
Angius8mo ago
What does the error say For every program you need a new project
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
MorryMar
MorryMar8mo ago
No description
Angius
Angius8mo ago
You can have many files within one project, yes
MorryMar
MorryMar8mo ago
how then
Angius
Angius8mo ago
But those files must be a part of the same program
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Angius
Angius8mo ago
And only the entry file can have top-level code All other files must be classes (or structs or records or enums)
Want results from more Discord servers?
Add your server