1

We are a company that started using TFS 2015. My colleague has created a C# Windows Form application. He sends me a Code Review request from TFS. I was able to get his request and accept it as well.

The problem I am facing is that I am not able to see the GUI itself but only the code. Clicking on form, display the code but not the designer.

I tried an alternative way asking him to shelve his changes but I am not able to unshelve his changes until he's doing a check-in which is contrary to our internal policy.

What is the way to review the GUI using Code Review feature in TFS?

Adding Screenshots:

Team Explorer - Code Review

Form - Right-Click Menu

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
ehh
  • 3,412
  • 7
  • 43
  • 91

2 Answers2

0

"Open" (double click) in TFS tabs will open form in code view.

You can press SHIFT+F7 to execute View.ViewDesigner command to switch from code view into designer.

Sinatr
  • 20,892
  • 15
  • 90
  • 319
  • There is no such option in this mode, this is exactly the issue I am facing. I have added screenshots – ehh Oct 19 '17 at 09:02
  • I see what you are doing. It's read-only comparison, there is no comparison-mode for designer. You will need to get files somehow before you can view them in designer. I think name of **code**-review implicitly tells you about such limitation. – Sinatr Oct 19 '17 at 09:13
  • Is there another way using TFS/VS2015 feature to make the code review viewing the Forms in a proper way without to have to get the files somehow? The only way I can think on is to check-in the code. Shouldn't it be such feature for code review? – ehh Oct 19 '17 at 09:18
0

The forms designer actually instantiates an instance of the form object, so it needs more than just the diff presented by TFS to load. Say, for example, that the form uses third party controls. In that case it would really need to load the entire project to ensure it gets the proper assembly references, etc.

While you may not be able to do this from the code review itself, TFS does create a shelveset behind the scenes that goes with the review. You can unshelve that onto your machine, which gives you the full project/solution complete with changes made for the submitted review. With that, you can do anything you would normally do. Not the most convenient, but it works.

Shelvesets

Blake
  • 200
  • 3
  • 10