Ask coding questions

← Back to all posts
Bash servers
Bunnytoes (164)

I might start making my c# project on the bas servers, but I need the .replit file to work, it seems like what I have will work but it doesn't please help and yes I looked at the replit docs

Answered by Coder100 (18872) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18872)

use mcs
csharp is not a compiler, but mcs is!
Then, use mono to actually run.

Bunnytoes (164)

@Coder100  mono main.cs Cannot open assembly 'main.cs': File does not contain a valid CIL image. exit status 2

Coder100 (18872)

no, you were supposed to use mono to run the exe @Bunnytoes

Bunnytoes (164)

@Coder100 how? I have run = "csharp main.cs" what should I add?

Coder100 (18872)

nope

run = "mcs main.cs ; mono main.exe"

@Bunnytoes

Bunnytoes (164)

@Coder100 can you help me make a mind reader in c# like you made

Bunnytoes (164)

@Coder100 you made one in c++ and it was really cool

Coder100 (18872)

ah yes
that one

so what about it? @Bunnytoes

Bunnytoes (164)

@Coder100 I want to try to make it in c#

Bunnytoes (164)

@Coder100 I was asking if you could help me

Bunnytoes (164)

@Coder100 the picking a sequence (like how it has x times 2 + 10 / 2), I need to be able to make it pick stuff like that

Coder100 (18872)

@Bunnytoes just choose a random number

Bunnytoes (164)

@Coder100 can you please leave some senarios for me please

Bunnytoes (164)

@Coder100 how can I make it pick random senarios from a file?

Bunnytoes (164)

@Coder100 I invited you because my code it won't work