Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet run not working #380

Open
HaidarX1 opened this issue Feb 22, 2023 · 9 comments
Open

dotnet run not working #380

HaidarX1 opened this issue Feb 22, 2023 · 9 comments
Assignees

Comments

@HaidarX1
Copy link

(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

@rasta-mouse
Copy link
Contributor

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

@HaidarX1
Copy link
Author

i did that the same error

@HaidarX1
Copy link
Author

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

@checkymander
Copy link

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

@HaidarX1
Copy link
Author

HaidarX1 commented Feb 22, 2023

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[])

@rasta-mouse
Copy link
Contributor

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.

@not-sekiun
Copy link

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

@vlados31999
Copy link

Friends
This command solves this problem

export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

@p4r7h
Copy link

p4r7h commented Aug 18, 2023

is there any alternative to solve this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@rasta-mouse @cobbr @checkymander @not-sekiun @p4r7h @vlados31999 @HaidarX1 and others