Questions tagged [dotnet]

Questions relating to the .NET framework, its open source implementation *mono* and the relevant programming languages.

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

C# wrapper for Debian apt library libapt-pkg

I need to retrieve package information in my C# application running on Linux. I've tried to use Python.NET which wrap python-apt which wrap libapt-pkg.so, and it works but I would prefer to go more ...
0
votes
1answer
16 views

What dependencies need to be installed to make dotnet build and restore works on Ubuntu 20.04 system

I am planning to create build and release pipeline using Ubuntu azure agent. Dotnet Build and Restore commands are failing. My project is from a dotnet core 3.1 version. Please let me know the minimum ...
1
vote
1answer
168 views

How can I install two versions of .NET for Rider?

I have installed both Rider and dotnet-sdk with Snap, so that I can debug .NET projects. However, I now need to work on an older solution that runs on an older version of .NET. How can I install ...
0
votes
0answers
78 views

'SkiaSharp.SKImageInfo' threw an exception while running .net C# avalonia

i am trying to build avalonia in C# .net application .But i keep getting this error below Unhandled exception. System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' ...
0
votes
0answers
524 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
0answers
58 views

Is there a .NET Core package in Ubuntu's main or universe repos?

I know of .NET Core / .NET 5 official Microsoft snaps and debs. However, I believe OSS snaps aren't necessarily compiled as reproducible builds. If I'm not mistaken, the publisher provides the already-...
1
vote
0answers
51 views

Unattended upgrades for dotnet not working

I am trying to configre unattended-upgrades for microsoft dotnet on ubuntu 20.04.2. I added the origin and section to allowed-origins in my unattended-upgrades config: Unattended-Upgrade::Allowed-...
0
votes
0answers
36 views

SNMP Port 161 address already in use error in UBUNTU Linux OS

I have an c#.net core console application in which SNMP socket is binding to port 161(hard coded value). Application is getting error at the runtime. Error: "Address already in use" ...
0
votes
1answer
692 views

Running dotnet run command throws error Couldn't find a valid ICU package installed on the system

I was using .net core 3.1 on Ubuntu 20.04 for a while but now after a system update the skd does not seem to recognize the installed libicu. I am currently on dotnet 3.1.407. dotnet run Error ...
0
votes
1answer
812 views

Getting .NET Core SDK not located error when I open a script in VS Code in Unity3D. All solutions on Google only work for Windows and not Ubuntu 20.04

The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. This is what the popup screen looks like in VSCode That's ...
0
votes
1answer
2k views

Remove .Net from Ubuntu 20.04 completely

I was trying debugging options in Visual Studio Code for C#. But there's a message at the bottom right every time I open VB Code, which says, The .NET Core SDK cannot be located. .NET Core debugging ...
5
votes
3answers
5k views

dotnet-sdk-5.0 not found on Ubuntu 20.04.2 LTS

I'm currently using the net core 3.1 and want to upgrade it to 5.0. I tried following this guide from Install the .NET SDK or the .NET Runtime on Ubuntu wget https://packages.microsoft.com/config/...
1
vote
1answer
59 views

i want to update from .net framework 4.0 to 4.5 or older (winetricks)

maybe this is so dumb lol but yeah I didn't know I needed dotnet45, I try to install it and it starts the net framework setup and shows me if I want to repair or uninstall the .net framework if I ...
0
votes
1answer
842 views

dotnet 5.0 Microsoft.WindowsDesktop.App on ubuntu

Am running Ubuntu Budgie 20.04 and regularly run .Net apps (that I built) through CrossOver (20.0.4) / Wine. I just built a small WinForms utility in .Net 5.0 and tried to run it in CrossOver. A ...
-1
votes
1answer
78 views

How to configure the PowerShell prompt on Ubuntu?

How do I configure the PowerShell profile so that the prompt is changed? nicholas@mordor:~/.config$ nicholas@mordor:~/.config$ ls -alh total 108K drwxr-xr-x 23 nicholas nicholas 4.0K Feb 4 19:50 . ...
1
vote
2answers
126 views

Having trouble installing .NET 5 on ubuntu server 20.04

I had previously installed .NET products on multiple ubuntu servers just fine but just one particular server can't connect to microsoft servers apparently. user@sv:~$ wget https://packages.microsoft....
4
votes
3answers
3k views

How to update .NET SDK to latest version?

Currently have the .net sdk 3.1.404 installed. There is a newer version out Download .NET Core 3.1 SDK 3.1.405. I am trying to figure out how to upgrade this on my machine. Part of my problem is ...
0
votes
1answer
388 views

dotnet452 conflicts with dotnet46

I have to run a windows msi installer application that demands .NET Framework 4.5.2 to be installed in the system. Now in my system few versions of .NET framework are already installed namely 4.6, 3.5 ...
0
votes
1answer
1k views

dot net sdk 5.0 on ubuntu

I've found and used this : https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-rc.2-install-instructions.md to no avail. I can't get a install of .net sdk 5.0 on ubuntu I try ...
0
votes
1answer
258 views

Run dotnet core on Ubuntu 20.4

I just shifted to ubuntu and I am trying to run dotnet core 3.1 project on Ubuntu. I successfully installed dotnet core sdk. But when i go to the folder in a separate mounted disk and run command ...
0
votes
2answers
248 views

Install latest version of dotnet-sdk by script

I am writing an installer script and need to install dotnet-sdk. I want to install the latest version which is 3.1 or in future 3.2 or whatever. Now I found that there are 2 versions in apt-get: user@...
0
votes
1answer
168 views

Install location for a multi file .NET core app in Ubuntu

I have a compiled .NET core app which I am planning to run in three major OSs. When I am trying to test my build in GitBash on Windows 10, once I build the app I get a lot of files along with the ...
11
votes
3answers
11k views

How to install Monodevelop in 20.04 and get it to build something?

I am trying to setup a development machine using 20.04 and am having problems with the Monodevelop environment. Whenever I create a solution and project it seems that it cannot find the proper build ...
2
votes
1answer
1k views

How to set environment variables from within powershell?

How do I make foo an environment variable accessible through printenv on bash? PS /home/thufir/powershell/helloPSTwitterAPI> PS /home/thufir/powershell/helloPSTwitterAPI> $env:foo = 'x' * 333 +...
2
votes
1answer
148 views

New tab in gnome-terminal closes on pressing Ctrl+C

I'm writing a bash script that runs few microservices at once. gnome-terminal --tab -t 'test' -- sh -c "cd Services/Api; dotnet run --no-build; bash"; The command works fine but when I press Ctrl+C ...
1
vote
0answers
128 views

How can I fix this VS Code / .NET Core SDK issue?

When starting VSCode (Visual Studio Code) I'm receiving the following error: When I search for my installed version in Terminal: computer@computeruser-wild-cpu:~$ dotnet --version 3.1.100 Do I need ...
1
vote
1answer
8k views

Problem with wine

I want to play osu! on ubuntu and wanted to instal dotnet but then came this error message: This package (dotnet20) does not work on a 64-bit installation. You must use a prefix made with WINEARCH=...
0
votes
1answer
73 views

How can I run a command if all processes of a certain name crash?

I’m running a dotnet application on a VPS running Ubuntu, and the application has to be running continuously 24/7. When I start up the application, I use “nohup dotnet (name).dll”, and in HTOP those ...
3
votes
0answers
961 views

dotnet Core 3 runtime snap not found in Ubuntu Core

I have a .Net Core 3 console app published for linux-x64. I want to run it on Ubuntu Core 18. I have installed the dotnet-runtime-30 Snap and aliased it like on this question. When run the binary ...
6
votes
1answer
10k views

How to develop for Android with Xamarin?

I want to develop applications for Android in C#. On Windows I tried Xamarin Studio and I was very happy with it. Is there a way to use Xamarin on Ubuntu? I noticed there are Xamarin.Android binaries ...
2
votes
1answer
90 views

Server crash randomly

My Ubuntu Xenial (and also another Bionic Beaver one) server keeps crashing on random intervals. Sometimes twice a day and sometimes after 2 weeks and after months even! I contacted my server hosting ...
18
votes
1answer
19k views

`dotnet` command not found after installing using snap

I've install .NET Core on my Ubuntu 18.04 using sudo snap install dotnet-sdk --classic, but after the install process complete, the dotnet command still not working. Here is my console log: long@...
2
votes
0answers
896 views

Cannot install dotnet-sdk due to unmet dependencies

I followed the instructions given Here to install dotnet-sdk-2.2. On running the last command, I get the following error: $ sudo apt-get install dotnet-sdk-2.2 Reading package lists... Done ...
2
votes
1answer
961 views

Curl & libcurl3 held back, possibly by .net core

When I try to upgrade my packages, I receive a message that curl and libcurl3 have been kept back. I did not do this myself. Referring to "The following packages have been kept back:" Why ...
1
vote
0answers
31 views

Firefox Webdriver NuGet dependency for Linux machine

I need a Firefox Webdriver which can work on a Linux machine and right now the one that exists in the Nuget repository works only on Windows and I would like to know if there is a way to get one that ...
1
vote
4answers
4k views

Cannot install .NET Core on Ubuntu Bionic Beaver

I'm currently trying to install .NET Core on Ubuntu 18.04 following these instructions. But I always get the following message: me@mine-Ubuntu:~$ sudo apt-get install -y dotnet-sdk-2.1.200 [sudo] ...
4
votes
1answer
2k views

How can I run dotnet on ubuntu without using sudo?

I've been trying to update the permissions so that I can run a command (specificially dotnet restore). I'm not sure if this issue is specific to running dotnet, or if it is more generic. I can run ...
52
votes
5answers
73k 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? ...
0
votes
1answer
330 views

Setting up the AWS Tools for PowerShell Core on Linux

The AWS utility has this to say about privileges: Note Although you can start PowerShell by running sudo pwsh to run PowerShell with elevated rights, be aware that this is a potential ...
0
votes
1answer
483 views

dotnet core runtime Odroid c2

Did anyone try to install dotnet sdk or runtime on Odroid c2 ubuntu 16.04. According official microsoft guide this is possible, but installation failed: ... odroid@odroid64:$ sudo apt-get update ...
0
votes
0answers
155 views

What to do if ignoring the dotnetdev.list file does not cause any issues with dotnet runtime and SDK?

I'm running a tiny program on Ubuntu 16.4 on a Virtual Private Server (VPS). For it to run I had to install the latest Microsoft dotnet runtime and SDK. Originally the runtime and SDK did not install....
0
votes
1answer
2k views

problem installing dotnet cli on Ubuntu - can't remove old version of dotnet core

I'm having a difficult time installing the latest DotNet Core CLI tools on Ubuntu 16.04. I believe it's because I have a much older version installed and I (this is embarrassing)... I don't know how ...
2
votes
0answers
2k views

winetricks .NET 4.0 Installation "Enough Disk Space Must Be Available 64Mb" Ubuntu 17.04

I just install net with WINEPREFIX=~/'Wine Prefixes/osu!' winetricks dotnet40 Error Screenshot: message after exiting the installer dotnet40 install completed, but installed file /home/fhadiel/...
5
votes
1answer
4k views

How to enable .net framework after install the .net framework?

I am trying to install one program named TecDoc Catalog. I am using Lubuntu 17.10 whit installed 32 bit Wine, winetricks and configured wineprefix(installed dotnet452). When i try to run the ...
0
votes
0answers
3k views

Unable to install .NET Core on Ubuntu 16.04 based on Microsoft Instructions

Going by the commands on this page I get these errors: sudo apt-get install dotnet-sdk-2.0.2 Reading package lists... Done Building dependency tree Reading state information... Done You might ...
0
votes
1answer
146 views

Ubuntu Jenkins appends windows paths when build

I'm trying to build my asp.net core application using Jenkins which is hosted with Tomcat8 on an Ubuntu 16.04 machine. The first build succeeds but when starting builds after that they fail (without ...
3
votes
0answers
2k views

A fatal error was encountered. The library 'libhostpolicy.so' required

Im quite new to Ubuntu and have been stuck on this for a few days now. Ive been trying to run a dll via dotnet but each time I launch I get a "fatal error was encountered. The library 'libhostpolicy....
4
votes
1answer
3k 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, ...
0
votes
1answer
1k views

problem installing dotnet cli on Ubuntu

Hello I am trying to have dotnet command working on Ubuntu and I am using following command sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177 but when I run the command it throws following ...
1
vote
1answer
1k views

dotnet core install fails

i'm trying to install the microsoft .netcore using these instructions (https://www.microsoft.com/net/core#linuxubuntu) on ubuntu 17.04. When I try to install dotnet-dev-1.0.4 it says myadmin@...