Right click on Contents list then my project is close automatic

Hello everybody

I have my project .
I want to copy method A from my project A to my Project B but my project B is close program automatic when I’m right click on Contents list on my project

thank you…