-
Notifications
You must be signed in to change notification settings - Fork 173
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
pre-commit hook fails: no compatible SDK was found #2198
Comments
From the readme:
The sdk repo has no option for a repo-based pre-commit hook but, .pre-commit-config.yaml file that looks like: repos:
- repo: local
hooks:
- id: dotnet-format
name: dotnet-format
language: system
entry: dotnet format --include
types_or: ["c#", "vb"] may suffice, if you're not needing dotnet format to be installed seperately from your system's dotnet tools. Otherwise you will have to install the named SDK preview version. More info here: https://github.com/dotnet/format/blob/archive/docs/integrations.md#pre-commitcom-hook-to-reformat |
I was trying to run the formatting hook, but it shows me that i have an incompatible dotnet SDK installed. I do have both .NET 8 and .NET 6 installed, both of which should at least be backward compatible (major and patch-only). I already issued this at pre-commit but the maintainer said, that "this is not a framework issue".
pre-commit configuration
pre-commit version
pre-commit log
The text was updated successfully, but these errors were encountered: