Support for projects created with Microsoft Common Project System
Completed
Hello!
I've created a custom project system based on Microsoft CPS https://github.com/Microsoft/VSProjectSystem
I'm need to turn on ReSharper support for it. I know that ".xproj" projects (ASP.NET 5) also built on top of CPS and ReSharper supports it, and the "Shader project" type also use CPS. So maybe is not too hard to add support for any other CPS-based systems.
BTW, CPS could be enabled for any regular C# project by changing project type GUID as the solution file as described here https://github.com/Microsoft/VSProjectSystem/blob/02191b00b6da83a152c118e653573068c5166869/doc/scenario/turn_on_cps_for_csharp_vb_project.md .
Regards!
Please sign in to leave a comment.
Nevermind, guys.
atI've found why ReSharper doesn't work properly for my custom project. By default, there is a property
. There is also right above it. I've fixed it by assigning specific version for $TargetFrameworkMoniker: .
Also it was required to import CSharp targets directly at the project file, even if you importing them at your targets file. Just add this line
Now ReSharper works fine.
Regards!
Unfortunately there are still some problems.
The menu item "Resharper->Tools->Cleanup code" is inactive. I cannot use code cleanup shortcut because "command (...) is not currently available".
How could I investigate why it's not available and add support for this?
Regards!
Hello Vladimir,
Please follow http://resharper-support.jetbrains.com/hc/en-us/articles/213833588--Cleanup-Code-menu-item-is-disabled-and-Cleanup-Code-option-page-is-empty. It seems to be the same issue as you experience.
Thanks!
Thanks, but I don't have any ReSharper extensions installed (fresh system). So it doesn't resolve the issue.
The cleanup works fine for regular C# Projects and DNX projects, but doesn't work for custom project created with Microsoft Common Project System (BTW, in my case it uses csproj extension). Refactoring and any other features I tried works properly.
I've enabled ReSharper logging and found this exception after project reload:
Could it be related to "code cleanup" missing issue?
Do I need to report this to the bug tracker?
Hello Vladimir
Yes, such exception might be related to missing Cleanup Code.
Please file an issue to YouTrack with a sample demo solution attached https://youtrack.jetbrains.com/issues/RSRP.
Thanks!
Thank you. I will do this right now.
UPD. Reported - https://youtrack.jetbrains.com/issue/RSRP-452621
Awesome! Thanks!
I assigned it to the right person.
Thank you very much! The issue is resolved at 10.1 EAP1.
By the way, there are still a lot of warning messages "Method 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAVSReference.EmbedInteropTypes' not found." at the log.
I found one more issue related to this. I reported it there https://youtrack.jetbrains.com/issue/RSRP-453644 with a demo-project. Unfortunately, I still didn't receive any feedback regarding this issue. Now there is EAP3 and the issue still present, I'm afraid it will go into the 10.1 release.
Regards!
The issue is marked as fixed now. I will confirm it as soon as you release the next EAP.
Thank you guys! I appreciate your awesome work.
BTW, I've a new issue since EAP2 with C# shared projects (bogus errors). I will report it ASAP.