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

InspectCode calls the exe file even on Linux, where it doesn't work #4313

Open
2 tasks done
fdw opened this issue May 22, 2024 · 1 comment
Open
2 tasks done

InspectCode calls the exe file even on Linux, where it doesn't work #4313

fdw opened this issue May 22, 2024 · 1 comment

Comments

@fdw
Copy link

fdw commented May 22, 2024

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake .NET Tool, Cake Frosting

Cake version

4.0.0

Operating system

Linux

Operating system architecture

64-Bit

CI Server

No response

What are you seeing?

I would like to run InspectCode on my solution. I have installed the ReSharper Command Line Tools, as they contain the same code as the NuGet package (but can be installed globally once). On Linux, they need a custom runtime, therefore should be started from inspectcode.sh and not inspectcode.exe.
Therefore, I get the error

Failed to fill the environment container with handler ?{myArgs=?(2pcs)[/output:/output.xml, solution.sln]?}?. Could not find method '.ctor' due to a type load error: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:/opt/resharper/JetBrains.Platform.Util.dll type:ListEvents`1 member:(null)

Unfortunately, inspectcode.exe is hardcoded in Cake. I would like to see a switch based on the current OS.

What is expected?

If I run InspectCode on a Linux machine, inspectcode.sh is used instead of inspectcode.exe.

Steps to Reproduce

Call InspectCode on a Linux machine

Output log

See above for the error message

@fdw
Copy link
Author

fdw commented May 23, 2024

I'd like to add that almost all parameters also follow the Windows style of / instead of --.

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

1 participant