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

Be able to specify dotnet version #439

Closed
morgan-cromell opened this issue Nov 24, 2023 · 4 comments
Closed

Be able to specify dotnet version #439

morgan-cromell opened this issue Nov 24, 2023 · 4 comments

Comments

@morgan-cromell
Copy link

I have found no way to specify what dotnet version to use. Even if I run the setup-dotnet action using 7.0.x it will run the inspect code with dotnet 8 which fails for us.

@muno92
Copy link
Owner

muno92 commented Nov 24, 2023

Exactly.

I will try.

@muno92
Copy link
Owner

muno92 commented Nov 25, 2023

@morgan-cromell
I added dotnetVersion option in version 1.11.0.

- name: Setup .NET
  id: setup-dotnet
  uses: actions/setup-dotnet@v3
  with:
    dotnet-version: '8.0.x' # [3.1.x, 5.0.x, 6.0.x, 7.0.x, 8.0.x]
- name: Restore
  run: dotnet restore
- name: Inspect code
  uses: muno92/resharper_inspectcode@v1
  with:
    solutionPath: ./YourSolution.sln
    dotnetVersion: ${{ steps.setup-dotnet.outputs.dotnet-version }}

https://github.com/muno92/resharper_inspectcode/actions/runs/6989067636/job/19017282212#step:4:19

JetBrains Inspect Code 2023.2.3
Running on x64 OS in x64 architecture, .NET 8.0.0 under Ubuntu 22.04.3 LTS
Using toolset version 17.0 from /usr/share/dotnet/sdk/7.0.404

Is this OK?

@morgan-cromell
Copy link
Author

Ah great! Thank you ❤️

@muno92
Copy link
Owner

muno92 commented Nov 25, 2023

You're welcome!

@muno92 muno92 closed this as completed Nov 25, 2023
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