It works if I run `dotnet run <file>`.
Update: It is working now, the file was using CRLF instead of LF.