Covenant icon indicating copy to clipboard operation
Covenant copied to clipboard

dotnet run not working

Open HaidarX1 opened this issue 2 years ago • 9 comments

(kali㉿kali)-[~/Desktop/Covenant] └─$ sudo dotnet run [sudo] password for kali: Couldn't find a project to run. Ensure a project exists in /home/kali/Desktop/Covenant, or pass the path to the project using --project.

can someone help me understand whats going on and how can fix this problem

HaidarX1 avatar Feb 22 '23 18:02 HaidarX1

Given the file structure, you probably want /Desktop/Covenant/Covenant.

rasta-mouse avatar Feb 22 '23 19:02 rasta-mouse

i did that the same error

HaidarX1 avatar Feb 22 '23 19:02 HaidarX1

now its showing me this

──(root㉿kali)-[/Covenant/Covenant] └─# dotnet run You must install or update .NET to run this application.

App: /Covenant/Covenant/bin/Debug/netcoreapp3.1/Covenant Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '3.1.0' (x64) .NET location: /usr/share/dotnet

The following frameworks were found: 6.0.8 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed

To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=kali.2022.4-x64

HaidarX1 avatar Feb 22 '23 19:02 HaidarX1

You need to install .Net Core 3.1, seems the only one you have installed right now is .NET 6

checkymander avatar Feb 22 '23 19:02 checkymander

its showing this now

Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. at System.Environment.FailFast(System.String) at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode() at System.Globalization.GlobalizationMode..cctor() at System.Globalization.CultureData.CreateCultureWithInvariantData() at System.Globalization.CultureData.get_Invariant() at System.Globalization.CultureInfo..cctor() at System.StringComparer..cctor() at McMaster.Extensions.CommandLineUtils.CommandLineApplication..ctor(McMaster.Extensions.CommandLineUtils.CommandLineApplication, McMaster.Extensions.CommandLineUtils.HelpText.IHelpTextGenerator, McMaster.Extensions.CommandLineUtils.Abstractions.CommandLineContext) at McMaster.Extensions.CommandLineUtils.CommandLineApplication..ctor() at Covenant.Program.Main(System.String[])

HaidarX1 avatar Feb 22 '23 20:02 HaidarX1

Follow the proper instructions to install .NET Core 3.1: https://dotnet.microsoft.com/en-us/download/dotnet/3.1 Or you could try the Covenant dev branch which I believe is using .NET 5.

rasta-mouse avatar Feb 25 '23 10:02 rasta-mouse

Follow the proper instructions to install .NET Core 3.1: https://dotnet.microsoft.com/en-us/download/dotnet/3.1 Or you could try the Covenant dev branch which I believe is using .NET 5.

Currently facing the same issue and apparently .NET core 3.1 is no longer supported on debian based systems. https://learn.microsoft.com/en-us/dotnet/core/install/linux-debian#supported-distributions how am I supposed to install it then? The supplied binaries do not appear to work, following instructions here https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-3.1.426-linux-arm64-binaries upon installing the 3.1 SDK it is not registered by the dotnet utility itself

not-sekiun avatar Mar 07 '23 10:03 not-sekiun

Friends This command solves this problem

export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

vlados31999 avatar Apr 09 '23 19:04 vlados31999

is there any alternative to solve this issue ?

p4r7h avatar Aug 18 '23 22:08 p4r7h