Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

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 ...
Roge's user avatar
  • 11
0 votes
1 answer
379 views

How to install previous dotnet versions alongside latest versions?

I'm using PopOs 21.10 and use the latest dotnet versions Now I have to install the previous version dotnet core 3.1 I tried wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-...
Question3r's user avatar
2 votes
0 answers
1k views

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/...
user avatar
0 votes
1 answer
411 views

c# script waiting in terminal but exiting directly as a daemon

i am a complete c# noob (i know Java though) i have a c# script i modified. I want to run it at startup using a daemon and systemctl (the original is this NZXT automatic fan controller script) the ...
Mohammad Al-Hajj's user avatar
0 votes
1 answer
272 views

How did Linux load this exe compiled with C#? [duplicate]

I just discovered something really surprising. I can compile a simple C# hello world on my windows computer using csc (from Visual Studio), copy the resulting exe file to my Linux computer, and ...
Mahkoe's user avatar
  • 113
-1 votes
1 answer
136 views

How do I set up a dev environment for c# on BodHi Linux (Ubuntu type system)

I'm very confused about my move to Linux on my laptop. I want to set up a .netCORE dev enciroment and believe I have everything installed correctly, but none of the IDEs I have tried (Atom and VSCode) ...
aJynks's user avatar
  • 99
0 votes
0 answers
662 views

How can I embed Subtitles into an MP4 Generated with ffmpeg

This isnt a duplicate of How can I embed subtitles into videos with ffmpeg? Im asking for something else, and that question didnt solve my problem. So im making a string Concatenation XAML App that ...
Mister SirCode's user avatar
1 vote
0 answers
46 views

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 ...
Roo's user avatar
  • 11
0 votes
0 answers
471 views

Running dot net application as daemon

I have been trying to run a simple dot net application as a daemon. I took a help from many of the below given links and did as suggested. Links: http://pmcgrath.net/running-a-simple-dotnet-core-...
Himanshu Singh's user avatar
2 votes
1 answer
146 views

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's user avatar
8 votes
2 answers
6k views

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 ...
Pierre B's user avatar
  • 2,233
0 votes
1 answer
457 views

Equivalent in Mono on Linux of GetUpdateRect on Windows?

I'm trying to compile in Mono on Lubuntu 16.04.1 a very helpful open-source Windows program, "Ketarin". It uses a function, "GetUpdateRect", which it finds in user32.dll, using this code: [...
JimH44's user avatar
  • 101
0 votes
1 answer
725 views

Awesonium Linux C# System.DllNotFoundException: Could not locate the path to the native Awesomium library

I am running Ubuntu 16.04 and the Awesomium Web Browser C# Framework as well as Mono 4.4.2 with the environment variable MONO_PATH set to /usr/lib/mono/4.5 and the environment variable ...
Frank's user avatar
  • 681
0 votes
1 answer
158 views

Puzzle with compilation of default.aspx.cs under Ubuntu 16.04 failing upon http://127.0.0.1/default.aspx

I would like to know why compilation of default.aspx.cs under Ubuntu Linux 16.04 with a code behind pointing to default.aspx.cs fails when I enter http://127.0.0.1/default.aspx at the web browser. ...
Frank's user avatar
  • 681
1 vote
2 answers
237 views

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....
Frank's user avatar
  • 681
-1 votes
1 answer
673 views

Where do C# executables running on an Ubuntu Linux 16.04 desktop which use source code that DLLImport's shared objects look for them at runtime? [closed]

Where do C# executables running on an Ubuntu Linux 16.04 Lenovo Thinkstation desktop which use source code that DLLImport's shared objects (so's) look for shared objects at runtime? Even if the shared ...
Frank's user avatar
  • 681
0 votes
2 answers
809 views

How may an managed C# executable step into an Unmanaged C++ shared object's code using the Monodevelop debugger on a Ubuntu Linux 15.10 platform?

We would like to know how a managed C# executable running in the mono environment can step into an unmanaged C++ shared object's code using the Monodevelop debugger on a Ubuntu Linux 15.10 platform. ...
Frank's user avatar
  • 681
0 votes
1 answer
307 views

How to fix the Ubuntu Linux 15.10 Files GUI manager , Nautilus , flickers on and off

I recently installed Ubuntu Linux 15.10 on a Lenovo desktop.After a mysterious crash last night while testing point and click of an Mono-.NET 4.5 C# executable which DLLImport's an C++ shared object, ...
Frank's user avatar
  • 681
0 votes
0 answers
155 views

Why does a Ubuntu Linux Mono-.NET 4.5 C# Program GP Fault upon loading and running a Shared Object?

On my Ubuntu Linux 15.10 Lenovo desktop computer, I wrote a Mono-.NET 4.5 C# program with a BuildIPCameraListLinux.config file which uses DLLImport to load libxmlconverter.so. Only upon point and ...
Frank's user avatar
  • 681
0 votes
0 answers
84 views

how do I recover mono-.NET4.5 runtime capability if I delete subdirectories such as /usr/lib/mono/2.0?

On Ubuntu Linux 15.10 , how do I recover mono-.NET4.5 runtime capability only if I delete the following subdirectories /usr/lib/mono/2.0,/usr/lib/mono/3.5,/usr/lib/mono/4.0 and /usr/lib/mono/4.5 ? We ...
Frank's user avatar
  • 681
0 votes
1 answer
1k views

how to change the Output Directory in a LINUX makefile so that a shared object can be relatively specified in C# DLLImport?

I would like to find out how to change the Output Directory in a LINUX makefile so that a shared object can be relatively specified in C# DLLImport? I read the following hint in https://...
Frank's user avatar
  • 681
2 votes
1 answer
338 views

C# compiler/IDE for Redhat Enterprise Linux 7?

Can someone point me to C# compiler/IDE for Redhat Enterprise Linux 7 ?
Yogesh M's user avatar
1 vote
0 answers
705 views

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[...
Joe's user avatar
  • 111
1 vote
1 answer
1k views

How to autorun a C# mono applications on Raspberry PI startup?

I have a Raspberry PI running Raspbian and I connect to it through RDP or SSH. And I have 2 applications in C# and I run them through mono. One is a WinForms app (GUI app, which cannot be launched ...
sczdavos's user avatar
  • 223
2 votes
1 answer
331 views

Resolv.conf modification breaks DNS [closed]

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 ...
HeatPhoenix's user avatar
2 votes
0 answers
350 views

"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 ...
nathanvy's user avatar
0 votes
1 answer
3k views

Install C# plugin for Eclipse

I've been trying to install a C# IDE or C# programming support on my Redhat Workstation, but no luck. I couldn't get Monodevelop running. Now I get these errors on the emonic plugin install for ...
somethingSomething's user avatar
2 votes
3 answers
520 views

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 ...
Vlad's user avatar
  • 133
6 votes
4 answers
6k views

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 ...
LIX's user avatar
  • 165
3 votes
2 answers
1k views

Mono book recommendations [closed]

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.
JesseJamesA's user avatar
17 votes
4 answers
1k views

Linux adoption path for a .NET developer [closed]

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 ...
Russ W's user avatar
  • 171
3 votes
2 answers
2k views

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's user avatar