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
-1 votes
0 answers
47 views

dotnet-ef add migration, fail

I tried to add Entity Framework to my application which I am building. Everything works fine. The app compiled and started before I added Entity Framework migrations, but when I tried to add ...
Kamil Nowiński's user avatar
0 votes
0 answers
125 views

dotnet sonarscanner did not find java but JAVA_HOME exists. Tried jre 11,13, 17 on ubuntu 20.04.3

I am starting proper command ~/project$ /usr/bin/dotnet sonarscanner end /d:sonar.login="admin" /d:sonar.password="user" and got the java error on ubuntu 20.04.3 SonarScanner ...
FAQ's user avatar
  • 121
0 votes
1 answer
317 views

.NET 8 SDK for 22.04 LTS?

Does anyone know if .NET/dotnet 8 SDK will be available as an official Ubuntu package for 22.04 LTS? I know it is available for 23.10, but I have found no information regarding 22.04. I know I can ...
Northern Brewer's user avatar
0 votes
1 answer
122 views

Git (Credential Manager) not found after deleting /home/.dotnet

Recently I uninstalled .NET (which was mistakenly installed to /home/.dotnet/ with the dotnet install script) by deleting the /home/.dotnet/ folder from my Ubuntu 22.04 machine. I have a repo which I ...
Victor Liu's user avatar
0 votes
0 answers
46 views

Why devenv.exe doesn't start?

I have Ubuntu and Windows 10 dual boot installed on my PC. In the Windows 10 256GB partition I navigated with Wine Explorer to the Visual Studio folder and I saw the devenv.exe with the Visual Studio ...
construyendo apps's user avatar
0 votes
0 answers
8 views

the dotnet sdk repo is set up wrong - how/where do I report it? [duplicate]

I don't know where to report this, if you could point me in the right direction that would be great. The question, to be clear, is "Where do I report this," not "How do I solve this.&...
SRNissen's user avatar
  • 101
0 votes
0 answers
986 views

dotnet complaining that libhostpolicy.so doesn't exist, even though it does

When I try to run a program using dotnet I get this error: > dotnet OmniSharp.exe A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '...
Abdulmalek Almkainzi's user avatar
0 votes
0 answers
382 views

Not able to download packages-microsoft-prod.deb in ubuntu server

I am attempting to install using the following command: wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb However, the download process ...
Ch.Muhammad.Bin.khalid's user avatar
0 votes
1 answer
990 views

Why do I get the error "The command could not be loaded" when running `dotnet` commands after installing the .NET SDK?

I followed the official instructions to install the latest version of the .NET SDK. I chose the "Package manager (Microsoft feed)" method. After completing these instructions and running ...
Matt Welke's user avatar
0 votes
0 answers
30 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
1 answer
288 views

Converting PowerShell (.ps1) script to Windows Executable (.EXE) on Ubuntu 22.04.2 LTS

I have a PowerShell script file (.ps1) that I need to convert into a Windows Executable file (.EXE). Here is a sample PowerShell script: # This is a sample PowerShell script # Define a variable $...
Jaskaran Singh's user avatar
0 votes
3 answers
2k views

dotnet new console not working [Ubuntu 23.04]

I am trying to install .NET SDK to use with VS Code. When I type dotnet new console the following is returned: The command could not be loaded, possibly because: * You intended to execute a .NET ...
chribonn's user avatar
  • 291
0 votes
1 answer
498 views

Ubuntu 20.04 dotnet tool is not available after dotnet reinstall

I'm pretty new to Ubuntu. After some recent update of Ubuntu - my dotnet cli went crazy and stopped working. After that I have completely removed it from my PC Then tried to reinstall it back with: ...
Maris's user avatar
  • 101
1 vote
2 answers
422 views

Unable to install an application via Wine that requires .Net4

I'm trying to install the trial of this application in a wineprefix 32bit: https://www.dextronet.com/swift-to-do-list-software It request dotnet 4, it is included in the installer in case it is not ...
Marco Guerrera's user avatar
0 votes
1 answer
285 views

.NET CORE as a cron job is failing

I've gotten this working (different .NET core app but also .net 6.0). However deploying a new app to a new server and... problems are as follows: I can run app: ./ApplicationName I can put the app in ...
ManOfKa's user avatar
1 vote
1 answer
1k views

How do I fix my broken .NET 6 installation?

I have .NET 6 and .NET 7 on my Ubuntu system. When I try to execute a test in Rider it says dotnet 6 isn't installed. But it is. If I run dotnet --list-runtimes it shows only .NET 7. Console output: ...
lorddev's user avatar
  • 111
2 votes
1 answer
500 views

Installed dotnet6 package with Jammy but the Windows application is still asking for Mono

I am trying to run SDRPlay2RSS.exe with wine. This is a piece of software based on the .NET framework, belonging to radiotelescope software for the Radio Jove project. I first tried installing wine ...
Sabine's user avatar
  • 41
1 vote
1 answer
211 views

Running a command line .net application on boot, as a user, without needing login

I have a dotnet console application that when executed will run a loop and await a keypress. On certain keypresses it will perform an action (via api calls etc..) I have a raspberry pi running ubuntu ...
Mark McGookin's user avatar
1 vote
1 answer
5k views

How to fix `GLIBCXX_3.4.30' not found in Ubuntu 22.04

Trying to compile dotnet code on ubuntu and get this error: Failed to load /usr/lib/dotnet/dotnet6-6.0.109/host/fxr/6.0.9/libhostfxr.so, error: /home/ubuntu/anaconda3/lib/libstdc++.so.6: version `...
HNN's user avatar
  • 11
0 votes
1 answer
261 views

Reconciling apt and snap installations of dotnet

Having two installations of .NET: $ lsb_release -d Description: Ubuntu 22.04.1 LTS $ which dotnet /usr/bin/dotnet $ which dotnet-sdk.dotnet /snap/bin/dotnet-sdk.dotnet The two installations seem ...
tymtam's user avatar
  • 231
3 votes
3 answers
13k views

How can I install dotnet Core 3.1 runtime on Ubuntu 22.04?

I have two Ubuntu 22.04 systems with Dotnet 6.0. The one that has been continuously upgraded from older versions of Ubuntu runs my Dotnet Core 3.1 app without any trouble -- because it still has the ...
Auspex's user avatar
  • 1,114
1 vote
1 answer
11k views

The command could not be loaded, possibly because: * You intended to execute a .NET application:

I am using dotnet6 in my ubuntu 22.04 version. Right now when I run dotnet --version, I am getting the below error. jyothish@jyothish-Lenovo-G570:~$ dotnet --version The command could not be loaded, ...
Jyothish Bhaskaran's user avatar
2 votes
1 answer
2k views

installing dotnet6 on ubuntu 22.04 WSL2 - installed but not showing in sdk-list

I am slowly transitioning to use ubuntu / linux WSL2 as primary for development - instead of windows, but there are still a lot of things I don't understand and have to look up, I am guessing this is ...
Danish's user avatar
  • 503
11 votes
2 answers
10k views

Why don't any of these methods work for installing .Net Core SDK & runtime on 22.04 (Jammy Jellyfish)?

I went to the following official Microsoft link to install .NET Core 6.x (SDK & runtime) and they would not work. Basically, it tells you to : wget https://packages.microsoft.com/config/ubuntu/22....
raddevus's user avatar
  • 1,780
1 vote
1 answer
7k views

Run systemd service with sudo rights

I have a Raspberry PI (Ubuntu 20.04) that is running a Web UI with a button to turn on a relay (communicate with the Raspberry PI from the Web UI) so in order to do that, I need to run it with sudo ...
DavidJS's user avatar
  • 131
0 votes
1 answer
78 views

Failed to run terminal app by .desktop file

I have following desktop file entries. [Desktop Entry] Version=1.0 Name=TestClient.desktop GenericName=Test Comment=Test Exec=/usr/share/TestClient/TestClientService Path=/usr/share/TestClient Icon=/...
user1772024's user avatar
1 vote
0 answers
4k views

Ubuntu 20.04 Redirect HTTP to HTTPS

Raspberry PI running Ubuntu 20.04 hosting a dotnet 6 (core) web application. DotNet by default listens to port 5000 (HTTP) and port 5001 (HTTPS). I can get http://mydomain to work but I CANNOT get ...
DavidJS's user avatar
  • 131
0 votes
1 answer
5k views

Ubuntu Failed to bind to address http://127.0.0.1:5000

Deploying an aspnetcore 6 web app to Ubuntu 20.04. Here is an article of what I am doing https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-6.0#publish-and-copy-...
DavidJS's user avatar
  • 131
0 votes
0 answers
232 views

This site can’t be reached

I am on Ubuntu hosting a .NET 6 web app. If I go to the directory where the publish files are stored and run command dotnet webapp.dll, then I will get something like the output below (Then if I go to ...
DavidJS's user avatar
  • 131
0 votes
1 answer
431 views

Installing .NET SDK on Ubuntu produces no executable dotnet file

Installing .NET SDK on Ubuntu 20.04 with the commands listed in the Install .NET on Ubuntu docs: wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-...
V0ldek's user avatar
  • 101
0 votes
1 answer
208 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 ...
KBNanda's user avatar
  • 101
2 votes
1 answer
4k 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 ...
lofidevops's user avatar
  • 20.8k
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
225 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-...
Alasdair Thomson's user avatar
1 vote
1 answer
3k 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 ...
Cliffi30's user avatar
  • 321
0 votes
1 answer
2k 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 ...
i_am_juan's user avatar
1 vote
2 answers
9k 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 ...
Mazharul Alam's user avatar
8 votes
4 answers
17k 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/...
tab87vn's user avatar
  • 203
1 vote
1 answer
2k 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 ...
ibizateahouse's user avatar
0 votes
1 answer
2k 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 ...
John's user avatar
  • 996
-1 votes
1 answer
238 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 . ...
Nicholas Saunders's user avatar
1 vote
2 answers
436 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....
Shahriyar's user avatar
  • 111
7 votes
4 answers
18k 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 ...
DaImTo's user avatar
  • 175
0 votes
1 answer
662 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 ...
user avatar
0 votes
1 answer
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 ...
tatsu's user avatar
  • 3,097
0 votes
1 answer
479 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 ...
Arslan Munir's user avatar
0 votes
2 answers
421 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@...
Stefatronik's user avatar
0 votes
1 answer
817 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 ...
Matias Barrios's user avatar
11 votes
4 answers
15k 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 ...
sysrpl's user avatar
  • 241
2 votes
1 answer
2k 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 +...
Thufir's user avatar
  • 4,551