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

Cannot recognize dotnet version. Says dotnet need to be updated. #1508

Open
dehlong opened this issue Feb 24, 2025 · 1 comment
Open

Cannot recognize dotnet version. Says dotnet need to be updated. #1508

dehlong opened this issue Feb 24, 2025 · 1 comment

Comments

@dehlong
Copy link

dehlong commented Feb 24, 2025

Environments:

  • CSharpier Version: 0.30.6
  • Running CSharpier via: cli
  • Operating System: Arch Linux
  • .csharpierrc Settings:
  • .editorconfig Settings:

Steps to reproduce:

  1. Install csharpier.
  2. Try running dotnet-csharpier .

Expected behavior:
Csharpier formats files.

Actual behavior:
Reports and error that I need to install or update dotnet. I already have the latest dotnet version installed (9.0.103) installed.

You must install or update .NET to run this application.

App: /home/samo/.dotnet/tools/dotnet-csharpier
Architecture: x64
Framework: 'Microsoft.AspNetCore.App', version '9.0.0' (x64)
.NET location: /usr/share/dotnet

No frameworks were found.

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=9.0.0&arch=x64&rid=arch-x64&os=arch
@belav
Copy link
Owner

belav commented Feb 24, 2025

I believe this has to do with CSharpier referencing aspnetcor so that it can run as an http server for the IDE plugins. That was added in 0.29 or 0.30.

The last link in the error message does allow me to download the AspNetCore runtime for windows, I assume there would be a different one for Linux.

Long term I can look into trying to break the CSharpier Server part of the code out from the CLI, this was an unintended consequence of the change.

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

2 participants