# Using resharper cli tools with cmake under Linux ?

**URL:** https://discourse.cmake.org/t/using-resharper-cli-tools-with-cmake-under-linux/7651
**Category:** Usage
**Created:** [March 9, 2023, 8:46pm UTC](https://discourse.cmake.org/t/using-resharper-cli-tools-with-cmake-under-linux/7651 "2023-03-09T20:46:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![neundorf](https://discourse.cmake.org/user_avatar/discourse.cmake.org/neundorf/32/2075_2.png) [@neundorf](https://discourse.cmake.org/u/neundorf)
#### Post date: [March 9, 2023, 8:46pm UTC](https://discourse.cmake.org/t/using-resharper-cli-tools-with-cmake-under-linux/7651/1 "2023-03-09T20:46:45Z")

</div>

Hi,

I tried to run JetBrain’s ReSharper command line tool InspectCode [InspectCode Command-Line Tool | ReSharper Documentation](https://www.jetbrains.com/help/resharper/InspectCode.html) today on Linux, which they say is supported:  
[System Requirements - dotUltimate | ReSharper](https://www.jetbrains.com/dotnet/download/system-requirements/#scope-resharper-command-line-tools)

It started, but then complained that it can’t find a Visual Studio solution file.  
I wonder how this is supposed to work. AFAIK the sln and project files contain Windows paths, which probably don’t match the directories under Linux.  
CMake doesn’t generate Visual Studio projects under Linux.  
I wonder if anybody here has experience with running the resharper tools under Linux ?

Thanks  
Alex

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 11, 2023, 1:16am UTC](https://discourse.cmake.org/t/using-resharper-cli-tools-with-cmake-under-linux/7651/2 "2023-03-11T01:16:16Z")

</div>

I think this probably relies on the Visual Studio Linux support which (I believe) still uses a Windows host and remotes into Linux or something like that.

I’d ask the ReSharper/JetBrains community for more info (C# support in CMake is basically “tell Visual Studio about some sources and flags” AFAIK.

---

<div class="post-metadata">

### Author: ![neundorf](https://discourse.cmake.org/user_avatar/discourse.cmake.org/neundorf/32/2075_2.png) [@neundorf](https://discourse.cmake.org/u/neundorf)
#### Post date: [March 14, 2023, 8:42pm UTC](https://discourse.cmake.org/t/using-resharper-cli-tools-with-cmake-under-linux/7651/3 "2023-03-14T20:42:43Z")

</div>

Resharper also supports C++, that’s the part I’d like to use also under Linux.  
I asked also on their side, waiting for feedback.

---

<div class="post-metadata">

### Author: ![neundorf](https://discourse.cmake.org/user_avatar/discourse.cmake.org/neundorf/32/2075_2.png) [@neundorf](https://discourse.cmake.org/u/neundorf)
#### Post date: [March 20, 2023, 9:31pm UTC](https://discourse.cmake.org/t/using-resharper-cli-tools-with-cmake-under-linux/7651/4 "2023-03-20T21:31:47Z")

</div>

So currently it is not supported: [https://youtrack.jetbrains.com/issue/RSCPP-34074](https://youtrack.jetbrains.com/issue/RSCPP-34074), even though Linux is listed as supported platform, somehow: [System Requirements - dotUltimate | ReSharper](https://www.jetbrains.com/dotnet/download/system-requirements/#scope-resharper-command-line-tools)
