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.
33 questions
1
vote
1
answer
170
views
Parsing msgcat merge conflicts into "nice looking" console errors using bash and assorted CLI tools
I was asked by @terdon to post this follow-up to a more specific issue I had and resolved over here.
Apparently my choice of tools has not been a particularly smart one, so I shall describe the use ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
583
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-...
2
votes
0
answers
2k
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/...
0
votes
1
answer
489
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
1
answer
307
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
1
answer
164
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
0
answers
707
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
0
answers
62
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
0
answers
649
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-linux-...
2
votes
1
answer
162
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?
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 ...
0
votes
1
answer
474
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
1
answer
746
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
1
answer
180
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. ...