Questions tagged [c#]

C# is a multi-paradigm programming language

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

The type or namespace name 'Z3' does not exist in the namespace 'Microsoft'

I'm a novice in Ubuntu. I want to run the code that ran on another machine in Ubuntu 18.4 And I get an error "The type or namespace name 'Z3' does not exist in the namespace 'Microsoft' (are you ...
0
votes
0answers
11 views

Unable to run “cat /var/lib/dbus/machine-id” from .NET Core on linux

I am working on a .NET Core application. I have to find the machine id of the system from C# code. To get the machine id of linux machine, i am using the following C# code: Process proc = new System....
1
vote
0answers
31 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 ...
0
votes
0answers
33 views

The type or namespace name 'Z3' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

First I apologize for my awful English, I'm new in Ubuntu.I tried installing Spire in Ubuntu18.4 and after installing z3 and PSI, I got the following error to install Spire. "/home/mahdieh/Spire-...
0
votes
0answers
57 views

Only C# compiler without installing Mono

Is there a way to install C# compiler on Lubuntu 19.04 without installing Mono. The thing is that I run Linux on usb and running only the "Test Linux Version" without installing it. I use the usb in ...
1
vote
1answer
278 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 ...
0
votes
0answers
107 views

Netcore app with OpenAL cannot open device for audio

I'm trying to run a netcore app with OpenAL, but whenever I use Alc.OpenDevice I get: $ dotnet run pong AL lib (WW) Failed to open playback device: could not open /dev/dsp: No such file or directory ...
2
votes
0answers
25 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. ...
0
votes
2answers
140 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.
1
vote
1answer
469 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#). ...
1
vote
1answer
548 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 ...
0
votes
0answers
107 views

Mono C# gtk# Gnome Gui terminal

I'm trying do an Gui terminal on MonoDevelop using Gtk project and c# (csharp), but I cant find a sample that works on mono so i start building my own. this is my actual code: using System; using ...
0
votes
1answer
24 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 ...
5
votes
2answers
7k 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?
1
vote
0answers
175 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, ...
0
votes
1answer
9k 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#...
0
votes
1answer
2k 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 ...
45
votes
4answers
51k 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? ...
2
votes
2answers
7k 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 ...
0
votes
1answer
673 views

Is there any IDE like Visual Studio? [duplicate]

I was using Visual Studio for 2 years in Windows, but now I am using Ubuntu. Are there any other IDEs to use that are as high quality as Visual Studio? Please don't tell me the name of another IDE ...
0
votes
1answer
2k 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.
0
votes
1answer
477 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....
2
votes
1answer
428 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 ...
1
vote
1answer
4k 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 ...
3
votes
1answer
2k 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, ...
2
votes
1answer
743 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.
0
votes
1answer
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 ...
0
votes
1answer
736 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 ...
3
votes
1answer
802 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() ...
0
votes
1answer
826 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 ...
0
votes
2answers
5k 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-...
1
vote
1answer
715 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 ...
0
votes
1answer
554 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 ...
0
votes
4answers
752 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.
1
vote
0answers
76 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 ...
0
votes
0answers
418 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 ...
1
vote
1answer
230 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,...
0
votes
1answer
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?
0
votes
0answers
315 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 ...
5
votes
3answers
11k 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.
0
votes
2answers
859 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.
0
votes
1answer
35 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....
1
vote
0answers
4k views

Is it Possible to run a C# website in Apache?

I have a client that has had a very large website with ssl that was written in C# and I was wanting to know is it possible to run this all windows website in a Linux atmosphere?
0
votes
0answers
50 views

Creating debian package of C# app with desktop icon [duplicate]

I am new to ubuntu 14.10 ,i have C# application.i want to make its debian package. and when i install this package on other ubuntu 14.10 machine ,after installing it should give desktop icon of ...
0
votes
1answer
2k views

Using `System.DirectoryServices` on Ubuntu to authenticate with windows active directory

I have developed a C# application using monodevelop, which basically does ldap authentication with windows active directory. It works fine in windows, but if I use the same code in Ubuntu instead of ...
3
votes
1answer
330 views

Is it still possible to develop C# software for Ubuntu?

I know that in the 2000s a number of popular pieces of software were written in C# for Linux. To list a few: Begal Banshee F-spot Moonlight Moonshine There was also a IDE called Monodevelop. Is it ...
2
votes
1answer
19k views

c# - Opening the terminal process and pass commands?

Is there a way I can start a terminal process in C# with commands executed after it starts?
3
votes
1answer
479 views

Update indicator label in c#

I've created a new indicator: indicator = new ApplicationIndicator ( "sample-application", //id of the the indicator icon "app-icon", //file ...
1
vote
2answers
4k views

How to write native Ubuntu programs with MonoDevelop?

I have written few simple console C# programs in Monodevelop but it seems they run in some emulated enviroment while debugging. The end result is a .exe file which does not runs natively on Ubuntu. ...
1
vote
1answer
1k views

What is the minimal installation to run .NET application created in C# by monodevelop?

I am a bit noobish when it comes to .NET but I am wondering what is the bare minimum of packages needed to be installed to run .NET application. It is a simple input output console app and with ...