Questions tagged [c#]

C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

C# (pronounced see sharp) is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed by Microsoft within its .NET initiative and later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is one of the programming languages designed for the Common Language Infrastructure.

C# is intended to be a simple, modern, general-purpose, object-oriented programming language. Its development team is led by Anders Hejlsberg. The most recent version is C# 4.0, which was released on April 12, 2010.

33 questions
17
votes
4 answers

Linux adoption path for a .NET developer

I am a .NET C# programmer, I love the .NET stack. I have tried Linux several times but every time I got put off as I could not do anything on it .. (like program for it or on it). Ever since Mono was launched, I find myself using Linux a lot…
Russ W
  • 171
  • 4
8
votes
2 answers

Writing C# in Debian

I want to learn C# on a Debian system. What do I have to install? Is there something like an interactive prompt where I can try running snippets of code? I have to learn C# and I have a dual boot computer, but don't feel like powering off Linux and…
Pierre B
  • 2,143
  • 6
  • 23
  • 38
6
votes
4 answers

Can I work with Sql Server, Office and C# using Linux?

I want to start working with linux, and I know I should work in that regularly to improve myself. I work with sql server, office, c# at the company. can I install and do my tasks in linux (i.e. red hat)?
LIX
  • 165
  • 2
  • 7
3
votes
2 answers

Nano syntax highlighting for C# and/or ASP. Net

Has anyone got (or can point in the direction of) a nanorc file that contains syntax highlighting for C# and/or ASP.Net?
Rob Cowell
  • 322
  • 3
  • 8
3
votes
2 answers

Mono book recommendations

Does anyone know if there are any upcoming book releases for Mono/GTK#? The only book I could find on Amazon with a decent rating is over 6 years old.
2
votes
0 answers

NuGet `dotnet restore` doesn't work on Ubuntu 20.04 (Linux Mint 21) due to errors in the certificate chain

When I try to make a simple Unit Test project with the following command (inside a project folder called test): dotnet new xunit It fails and this is the output I get: /usr/share/dotnet/sdk/5.0.301/NuGet.targets(131,5): error : Unable to load the…
user479442
2
votes
1 answer

Why does linux recognise a C# .cs file as a C++ source file?

I used the file command on a c# source file, and linux thought it was a c++ file. What is the reason for this?
J. Czekaj
  • 23
  • 2
2
votes
3 answers

Developing software on linux

What tools or IDEs do I need to start developing software on Linux in C++? Can I work using C#? What are necessary skills in order to know to develop software on Linux? I mean what is required in the firms mostly to work as Software engineer on…
Vlad
  • 133
  • 8
2
votes
1 answer

C# compiler/IDE for Redhat Enterprise Linux 7?

Can someone point me to C# compiler/IDE for Redhat Enterprise Linux 7 ?
Yogesh M
  • 21
  • 1
2
votes
1 answer

Resolv.conf modification breaks DNS

This is an odd one but I seem to be unable to solve it. I'm creating a visual user interface to modify internet settings on Debian Wheezy (and other debian versions/derivatives that are incidentally compatible). I want to be able to modify the DNS…
2
votes
0 answers

"Restart" a process in the same terminal?

I put "restart" in quotes because the following question on SO illustrates what I'm trying to do: https://stackoverflow.com/questions/27957091/restarting-a-process-in-the-same-linux-terminal I'm using mono to run some C# code and for cross-platform…
nathanvy
  • 53
  • 3
1
vote
1 answer

Configure .bashrc file to use .NET 6.0 SDK in Linux

I'm installing C# and dotnet 6.0 SDK in the Linux lubuntu 22.04 version. Following recommendations from Microsoft documentation to install manually such as: mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-6.0.400-linux-x64.tar.gz -C $HOME/dotnet export…
Roge
  • 11
  • 1
1
vote
0 answers

Host data that everybody can update

I work with C# in my spare time and have written a number of programs as one of my hobbys. So I dont consider myself a programmer, I just like to write solutions for problems I come across. My latest problem is.. I have written a C# program that…
Roo
  • 11
  • 2
1
vote
2 answers

Why does Ubuntu 16.04 execle of a specfic C# image halt after 90 seconds while others run 24X7?

I would like to find a Ubuntu Linux 16.04 systen command similar to strace to find out why my C++ program , ServiceController.exe , which [execle ("/usr/lib/mono/4.5/mono-service","/usr/lib/mono/4.5/mono-service", …
Frank
  • 651
  • 3
  • 10
  • 25
1
vote
0 answers

ntpd socket problem

Currently I have a C# program that queries my NTP server (CentOS 7) public static DateTime GetNetworkTime() { const string ntpServer = "192.168.10.48"; var ntpData = new byte[48]; ntpData[0] = 0x1B; //LeapIndicator = 0 (no warning),…
Joe
  • 111
  • 2
1
2 3