Rider support for C++/CLI in Windows Forms

I'm a student that's in a class being taught (usually) exclusively in C++, however we have just started GUI development and our professor is using C++/CLI.

I believe that Rider is the only JetBrains IDE to have support for this, however I can't figure out if there's a way to create a Windows Form in this without it defaulting to C#.

As much as I could learn C#, I would like to follow along in the class as best I can.

I created a project in VS2022 and tried to simply open it in Rider to a little success - it opened and resolved code predictions properly, however when attempting to build it comes up with an error:

  DLL entry point "int __clrcall main(cli::array<System::PE$AAVString >^)" (?main@@$$HYMHP$01EAPE$AAVString@System@@@Z) cannot be managed; compile to native

When in doubt, I'm open to simply using VS2022 as well. Any help is appreciated!

 

EDIT: I should add that the whole point of this is to get to the WinForm designer. If that's not possible, then VS2022 it is.

1
3 comments

Hello Vas007,

Thank you for contacting Rider forum,

As for the C++ WinForms issue, I have created feature request in our bug tracker with the ID RIDER-89009.

As foe the issue with the built, could you please try changing the MSBuild version to the same as in Visual Studio in Settings/Preferences >  Build, Execution, Deployment > Toolset and Build > MSBuild version? Will it help? 

Thank you in advance! 

 

0

Hello,

I finished the assignment that I was working on in VS2022, and then opened it in Rider and it ended up building and running just fine. I'm really not sure what I changed, but it works now, minus the designer window.

I read over the feature request/bug report that you posted above, and found that the version of MSBuild that I'm using is set to "Auto detected (17.0)," however since it works I'm not 100% sure that it helps anything.

Thanks!

 

0
Hello!

Thank you for contacting Rider Support. I am happy to hear that the solution was found. However, if you have any other questions or difficulties in the future, do not hesitate to contact support. Have a great day!
0

Please sign in to leave a comment.