Is InspectCode supposed to work with Resharper C++ (i.e. C++ projects)?

I get a lot of errors like

The "SetEnv" task could not be instantiated from the assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Build.CppTasks.Common.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'Microsoft.Build.CPPTasks.SetEnv' to type 'Microsoft.Build.Framework.ITask'. in file 'C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.cpp.targets' at (67:5)

0
3 comments

Hello Staffan!
Thank you for contacting us!
Sorry for delay with answer.
Could you please describe in details your problem?
Thank you!

0
Avatar
Staffan Gustafsson

When running InspectCode.x86.exe on a solution that only contains C++ projects, it reports that it doesn't find any files.

PS> inspectcode.x86.exe --toolset=14.0 .\ConsoleApplication1.sln
JetBrains Inspect Code 9.2 Running in 32-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.2.9200.0
No files to inspect were found.



The solution contains the project ConsoleApplication1\ConsoleApplication1.vcxproj which contains  <ClCompile Include="ConsoleApplication1.cpp" />

So I had expected ConsoleApplication1.cpp to be inspected.

0
Avatar
Permanently deleted user

Staffan,

Unfortunately C++ support hasn't been added yet to R# command line tools. We'll add it in one of the future releases, please vote for https://youtrack.jetbrains.com/issue/RSCPP-15474 if you're interested.

0

Please sign in to leave a comment.