Questions tagged [c#]

C# is a multi-paradigm programming language

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

I have installed .net on Ubuntu 22.04 yet it doesn't recognize the sdk

I firstly installed .net sdk 7.0 using snap. VSCode didn't recognize it and I added it to the path (don't remember how, creating a symbolic link I think). Still VSCode wouldn't recognize it inside its ...
X HOxha's user avatar
0 votes
0 answers
23 views

I install dotnet sdk-7.0 but dotnet-sdk-7.0 not found on Ubuntu [duplicate]

I use these commands to install dotnet-sdk and dotnet-runtime # Get Ubuntu version declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^...
Azraf Sami's user avatar
0 votes
0 answers
133 views

PGP Encryption with C#

Hi I am new to PGP Encryption. below issue i am facing is I am Encrypting a csv file with PGP public key using a C# Console application. When I am Encrypting the file into File System another Team is ...
user21038724's user avatar
0 votes
0 answers
150 views

Rider not recognizing dotnet

A few days ago, my dotnet just stopped working. I purged and reintstalled it but after that, rider stopped recognizing it and only lists .Net Framework versions from mono. I tried the version from the ...
Janx's user avatar
  • 1
0 votes
0 answers
78 views

Run NS-3 Simulation on Ubuntu

I need to tun this NS-3 simulation project on my ubuntu VM. Also, I need to obtain the graph related to this simulation.mmWave-IAB I don't know what are the necessary files to run. Can anybody help me?...
Ashan's user avatar
  • 1
-2 votes
1 answer
361 views

Is C# installed on Ubuntu by default [duplicate]

So I'm trying to learn some new languages, and I figured C# would be good. I went to search how to install it on Ubuntu, and go 0 results, so I went to VSCode and tried to write an application, but ...
Dequog's user avatar
  • 55
2 votes
1 answer
588 views

Is there a script where I can convert ppt to mp4?

I want to convert a .ppt to .mp4 file with a script. Is this possible, if yes how can I start ? Thanks for Ideas... I know I can export directly over Microsoft Powerpoint but I want a script which ...
kemal uluz's user avatar
0 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/...
user avatar
-2 votes
1 answer
231 views

C# function to return string error in unity, not all code paths return a value

I think there is something wrong with my for loop? using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using BreakInfinity; using System.Numerics; public ...
WOLFGANG343's user avatar
0 votes
1 answer
35 views

C# + mysql + ubuntu server encoding issue

While working on project, which requires database (mysql) usage, I faced an interesting issue, touching cyrillic handling. Firstly, on the stage of developing everything was pretty nice and ...
Konstantin Mironov's user avatar
0 votes
0 answers
625 views

systemd-networkd: enp0s8: DHCP: No gateway received from DHCP server

I am setting up a server with the following configurations: Ubuntu 20.04 C# .NET Core 5.0 Framework, not runtime Apache 2.4.41 All running on VirtualBox VM I have built and deployed an example ...
guidamedia's user avatar
0 votes
0 answers
332 views

What were the requirements for running Visual Studio IDE on Ubuntu? Can we develop IDE like it for Linux? [duplicate]

I'm looking for deep knowledge for running Visual Studio IDE in Ubuntu. Can anyone tell me what were the requirements to do so. Ofcourse wine is a process available but as It themselves says vs2019 ...
mzaifquraishi's user avatar
0 votes
0 answers
131 views

Programming in c# not working

I programmed in c # using windows and never had any problems. Since I started using ubuntu I have a problem. the applications (Visual studio code, monodevelop, sublime text and atom) do not show ...
BeOnlyTom _'s user avatar
1 vote
0 answers
382 views

Installing z3 on Ubuntu 18.04

I installed Z3 on the mono in Ubuntu 18.04 according to the steps mentioned at https://github.com/Z3Prover/z3 and got the message of success, but Z3 does not work properly and it is not in the ...
mahdieh hejazi's user avatar
1 vote
0 answers
216 views

How to install .NET Core 3 application on pure Ubuntu Core Snappy

I have a pure Ubuntu Core Snappy build running on a Raspberry Pi 3. My new requirement is a to add a C# application based on .NET Core 3. I can't find an existing Snap supporting .NET Core 3 and a ...
Tanny Bear's user avatar
1 vote
1 answer
5k views

How to load dll to C# in mono and run it

I have some Selenium test cases which were written in Windows. Now I want to run them in Ubuntu. I found a way to link my C# program and selenium dll using this solution, but I'm getting the following ...
Prasanth Ganesan's user avatar
2 votes
0 answers
81 views

Correct struct stat for my installation

As a learning exercise, I'm calling ftw using .NET Core interop from C#. It works fine insofar as I receive appropriate filenames in my callback. However, I haven't defined struct stat correctly. ...
Eric J.'s user avatar
  • 121
0 votes
2 answers
365 views

Visual Studio alternatives on Ubuntu [duplicate]

Are there any alternatives for Visual Studio on Ubuntu? I searched on Google and I could not find anything.
AFOEK's user avatar
  • 1
1 vote
1 answer
2k views

WPF programming on Unix with C#

I am a wanna-be programmer aka computer science student and I have a lecture in C#. But I only have a Mac and a Linux computer. I need to be able to program an app with interface and logic (XAML/C#). ...
Alex Lightwood's user avatar
1 vote
1 answer
1k views

System namespaces missing MonoDevelop on fresh install

I am wondering if anyone can help me, I did a fresh install of MonoDevelop on a fresh install of Ubuntu 18.04.2 LTS with .NET Core 2.2 installed (everything updated), then followed the instructions ...
BillyJoe's user avatar
  • 111
0 votes
1 answer
28 views

Which distribution? [duplicate]

best distro for 2 GB ram, i3, 500 GB. I am currently run win7 on it. I have never tried Linux or Unix except Ubuntu in my school. I do not have many needs. Will Ubuntu lag in above system ...
Haard's user avatar
  • 21
11 votes
4 answers
43k views

How can I compile, run and decompile C# code in Ubuntu terminal?

I have a C# code which I need to compile, execute and decompile using the terminal. How can I do so?
Sonevol's user avatar
  • 686
1 vote
0 answers
255 views

When I install unity game engine on Ubuntu, it doesnt download c# like in windows

I installed Unity( tutorial How can I install Unity 3D game engine for Ubuntu ?). It worked, but when I try to edit c# script, it does not work. When I double-click the script in my Project view, ...
Joonas Manninen's user avatar
0 votes
1 answer
12k views

How to install Gtk# on Ubunu 18.04?

Is there any way to install Gtk# on ubuntu 18.04? I'm missing the gnome-desktop-sharp library, which i can't install because it requires gnome-desktop2. If it's impossible, are there any other good C#...
Žiga Stupan's user avatar
0 votes
1 answer
5k views

How do I run Minecraft-Console-Client on Ubuntu?

I want to install the GitHub app found here. The problem is that according to the README.txt file in the config folder, I need to run mono MinecraftClient.exe but that command only returns Cannot ...
The Colorman's user avatar
57 votes
5 answers
86k views

Is knowledge of C# of any use in a Linux system?

I know C# and I like to switch between systems and use Linux. Can I use C# to build applications that will natively work on Linux? What should I do to make use of my knowledge of C# in a Linux system? ...
Jacob's user avatar
  • 1,120
2 votes
2 answers
8k views

C# on PlayOnLinux vs. Wine

How well do these work? I'm downloading a ton of new distros to decide which one I want to run. The reason I'm asking is I have to take C# on a Windows computer for school. Can I get away with one ...
burnedfaceless's user avatar
0 votes
1 answer
1k views

Is there any native C#/C++ IDE similar to Visual Studio but more lightweight in Ubuntu? [duplicate]

I was using Visual Studio for two years in Windows, but now I am using Ubuntu. Are there any other C#/C++ IDEs to use that are as high quality as Visual Studio? Please don't tell me the name of ...
nextmarkzuckerberg's user avatar
-2 votes
1 answer
3k views

IDEs for running C# programs in Ubuntu [closed]

Which is the better option for running C# programs in Ubuntu? using Mono and compiling in the terminal Microsoft Visual Studio Code Microsoft .NET SDK.
Kai Iyer's user avatar
0 votes
1 answer
803 views

Can not reach http api server from external IP

I have a api http server on a pc Ubuntu 17.04. I've forwarded port 2002 on my router to this pc. The matter that I'm successfully able to connect to my server by url with local IP - http://192.168.xxx....
Tony's user avatar
  • 1
2 votes
1 answer
583 views

Can I develop web and desktop apps on Ubuntu using C#?

I am new to Ubuntu (using 14.04) and Linux in general. Professionally I work on HTML,PHP, CSS, C# and C. I know I can use HTML, PHP, CSS and C but I am not sure about C#. In Windows there is Visual ...
Sabir Ali's user avatar
1 vote
2 answers
6k views

Cannot execute programs from MonoDevelop

I clicked on "Run a console project" and it said that the program was built successfully. But after that, I click "Run a console project" again and error like Cannot execute /path/file.exe appears as ...
Hieu Tran Trong's user avatar
4 votes
1 answer
4k views

After installing .NET Core, where is the nuget binary?

I followed these steps to install the .NET Core SDK. After I installed it, I can only find the ~/.nuget directory that was created, but I cannot find the executable nuget. But in the Microsoft docs, ...
chikadance's user avatar
2 votes
1 answer
1k views

How to add references with C#

I want to compile and execute a C# program that needs external dll. In Visual Studio we just add...reference. What is the corresponding way to do that with Ubuntu 16.04? I use the SDK from Microsoft.
Niklas Rosencrantz's user avatar
0 votes
2 answers
4k views

connecting Visual studio Code C# to My Sql

I'm working on Ubuntu 17.04, i just installed Visual Studio code, C# and a debugger, the IDE is working very nice, in order to complete the development of the project i'm working on, i need to connect ...
Shimon Wiener's user avatar
0 votes
1 answer
992 views

VS code Debugger cant the Program C# on Ubuntu OS

I'm new to Visual Studio Code, i installed it on my Ubuntu Machine and installed the debugger. i can run my program normally by using the "donnet run" command. i configured the the debugger by adding ...
Shimon Wiener's user avatar
3 votes
1 answer
1k views

Ubuntu terminal not waiting for Console.ReadKey() input

I'm using MonoDevelop to write C# (.NET) codes, on Ubuntu Desktop 14.0.5 LTS. While testing a simple Hello World code, I encountered a problem - earlier on windows, I used the Console.ReadKey() ...
progyammer's user avatar
0 votes
1 answer
881 views

Ubuntu 16.04.1 mod_mono won't install

I was having some issue with my server so I decided to fully un-install Mono and re-install it. Big error. It won't re-install and the server is broken until I fix it. First, I un-installed ...
Etienne Charland's user avatar
0 votes
2 answers
6k views

How to downgrade mono 4.2.1 to 3.12?

Mono 4.2.1 simply has way too many glitches. I tried using the steps in the answers of this question, but when I type mono --version, I get: Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-...
Big Ben GamerGuyKSPMC's user avatar
1 vote
1 answer
883 views

Warning CS8001: SDK path could not be resolved while running C# application in Ubuntu 16.04

I've installed mono, and I am able to compile and execute command line C# applications to learn syntax. However, I keep getting this after compiling: warning CS8001: SDK path could not be resolved ...
DevOpsSauce's user avatar
0 votes
1 answer
601 views

Visual Code Error: Debugger adapter process terminated. Please Help

I've been using Visual Studio in Windows for a couple years now but just starting changing to Visual Code in Linux (Ubuntu 16). I followed the installation instruction from the Microsoft dotnet page ...
Dany Dodson's user avatar
0 votes
4 answers
842 views

Visual Studio Replacement for C#?

Currently studying a Computer Science Degree, in Programming we are using C# in Visual Studio. So need a replacement that can run work already started in Visual. Thanks in advance.
Saxon05's user avatar
1 vote
0 answers
80 views

Creating a C# Application under Ubuntu [duplicate]

I wanted to ask, is it possible to develop c# applications with windows forms under ubuntu with the official .NET core. Am asking because at school we learn c#, but how do I do my homeworks? I know ...
Кристиян Кацаров's user avatar
0 votes
0 answers
451 views

asp.net template for monodevelop

I've installed Ubuntu 16.04 LTS, monocomplete and monodevelop(5.10.0.872-2). But it doesn't have project template of asp.net projects. I found this link. It's not allowing me to install 5.10.0.871. Is ...
Pratik Gaikwad's user avatar
1 vote
1 answer
268 views

How well supported is .NET on Ubuntu 14.04?

I have to port an application written in C# + WinForms to run on Ubuntu. But how well is .NET and WinForms supported on Ubuntu? If I take a C#.NET + WinForms project and try to compile under Ubuntu 14,...
Jack's user avatar
  • 123
2 votes
1 answer
5k views

How to run the C# program in ubuntu 14.04 using VS code? [closed]

I have installed VS code and .Net core in my ubuntu 14.04. I have written a C# program and now I want to run it. How to run it or is there any compiler I need to install?
nukes's user avatar
  • 23
0 votes
0 answers
383 views

How to programmatically hide windows associated with Desktop and Unity launcher and panel?

I'm developing WindowsForms Kiosk application using Mono 4.4.0, and I want no desktop related things being displayed when my application is launched. I.e. I want fully black, non clickable screen ...
user avatar
5 votes
3 answers
13k views

WPF programming in ubuntu

I want to work c# WPF. i search the net and find MonoDevelop , I want to know that is there any IDE for WPF in Ubuntu. and is that powerful as Visual studio in windows.
Hojat Sajadinia's user avatar
0 votes
2 answers
1k views

Problem with C# MySQL Connection

Hello everybody i have a MySQL connection problem in C#. This is my problem in the picture. thanks for help me.
Sami MAAZAOUI's user avatar
0 votes
1 answer
41 views

Does MonoDevelop's syntax deviate from VisualStudio's

I'm an IT student and we started learning C# this semester, we are working with VisualStudio 2012 in class. Since I installed ubuntu recently I do not know much about anything, but I like it very much....
Benjamin Šehić's user avatar