BUG: Right Click / Copy As
Kaelum
Posts: 7
I don't know which update broke this, but this context menu item no longer works correctly. It now always returns code in a .NET 4.6 / C# 6 / VB 14 format, no matter what Optimization you have it set for. However, if your current Optimization is not set to .NET 4.6 / C# 6 / VB 14, the code copied to the clipboard is not even valid code.
Comments
Sorry I've been trying to reproduce this but am unable to so far, I'm able to get valid code out no matter what combinations I select. Can you provide some examples of what you're seeing please?
and here is what you get if you right click / Copy As / Text:
As you can see, what is being shown in the disassembler is not what is copied to the clipboard. The code for the Name property is completely different and does not compile in VS 2013.
I have been able to reproduce this - just for everyone's clarification this is when you right click on the Expand Methods link at the bottom of the disassembled code. You right click > Copy As > Text (or Rich Text or HTML all seem to give the same text) and then when you paste you get the odd outcome seen. The workaround that I can see at this point is to click Expand Methods, then highlight the text and Ctrl+C or right click the highlighted text and choose copy.
I have raised this bug with internal reference RP-3952 but unfortunately we don't have a time-frame for when this may be addressed.
Hope this helps clear things up and thanks for pointing this out to us!
Kind regards,
Alex
Have you visited our Help Center?