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
0
votes
1answer
26 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 ...
0
votes
1answer
52 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 ...
-1
votes
1answer
41 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) ...
0
votes
0answers
176 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 ...
1
vote
0answers
34 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 ...
0
votes
0answers
358 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-...
2
votes
1answer
93 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?
6
votes
2answers
4k 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 ...
0
votes
1answer
337 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: [...
0
votes
1answer
640 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 ...
0
votes
1answer
143 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. ...
1
vote
2answers
221 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....
-1
votes
1answer
563 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 ...
0
votes
2answers
670 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. ...
0
votes
1answer
297 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, ...
0
votes
0answers
135 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 ...
0
votes
0answers
81 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 ...
0
votes
1answer
664 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://...
2
votes
1answer
306 views

C# compiler/IDE for Redhat Enterprise Linux 7?

Can someone point me to C# compiler/IDE for Redhat Enterprise Linux 7 ?
1
vote
0answers
507 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[...
1
vote
1answer
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 ...
2
votes
1answer
313 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 ...
2
votes
0answers
300 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 ...
0
votes
1answer
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 ...
2
votes
3answers
503 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 ...
6
votes
4answers
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 ...
3
votes
2answers
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.
17
votes
4answers
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 ...
3
votes
2answers
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?