© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
11 replies
AJ

❔ Trying to run a command through C# on macOS

I'm currently utilising Jetbrains rider. My tutor has tasked me with creating a simple little C# transpiler, that will have source code, which works and builds into a CS file, after that it then needs to compile via Mono.

Everything works except trying to get the
csc build.cs
csc build.cs
file working.

void Build()
{
...
    Compile($"csc {buildDir}/build.cs");
}

void Compile(string command)
{
    Process.Start("csc", command);
    Environment.Exit(0);
}
void Build()
{
...
    Compile($"csc {buildDir}/build.cs");
}

void Compile(string command)
{
    Process.Start("csc", command);
    Environment.Exit(0);
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Trying to Learn C Sharp on MacOS
C#CC# / help
2y ago
trying to search through a Reportviewer
C#CC# / help
2y ago
"Building a C# Interface to Display Real-Time Data on macOS"
C#CC# / help
17mo ago
❔ How to run a c# file
C#CC# / help
3y ago