P
P
Peter2017-10-15 21:07:49
linux
Peter, 2017-10-15 21:07:49

Friendship C# and Linux, how?

Good afternoon. I know that this question was raised but I'm interested in the following.
For example, I wrote Hello World in C# under Windows. What development environment is needed under Linux in order to simply transfer the source code and execute it there without changes.
For the sake of training, I want to write a chat server + client. Place the server part on linux, the client application on Windows and Linux.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Nemiro, 2017-10-15
@Morpheus_God

It is possible to run regular builds through Mono or .NET Core . The latter is preferable.
The "Hello world" level program will simply run through the above solutions, for example:

mono helloworld.exe
dotnet helloworld.exe
# выполнение из исходного кода в текущем каталоге:
dotnet run

More complex solutions may require additional code adaptation. Under .NET Core , this is more convenient and easier to do. It is quite possible to write and build code in Visual Studio under Windows .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question