TFS 2017 WebLayout - Add field to Attachment tab - tfs

We are starting to look at the new WebLayout feature of TFS 2017.
I understand the system controls and that Microsoft has limited this on purpose.
What we currently have for the work items is a textbox above the AttachmentControl that shows some instructions on how to use the attachment Control, or better how not to use it. As well as a network path to the server to use in case of very large attachments.
I can't seem to find a away to add items to the new Attachment tab. The control is currently page wide on the new tab and no way to add additional controls to that tab.
Is there a workaround that would allow me to add a control to this tab ?

No. You cannot modify system controls. You could write an extension that pops up your warning text, but you'd have to add it to one of the available "contribution" points.

Related

How to Expand/collapose in .cshtml file in Visual Studio 2017?

I am using Visual Studio 2017.
I can expand and collapse in .cs files using command as follows:
Expand CTRL+M+L
Collapse CTRL+M+O
But same is not working in .cshtml file? Is there any workaround?
Ctrl+M+A collapses all, Ctrl+M+X expands all in my installation. You can see them by opening Tools > Options..., select Keyboard under Environment. In the Show commands containing, find Edit.CollapseAllOutlining (you can search too) and Edit.ExpandAllOutlining. You should be able to see the existing binding or add your own (make sure to select Text Editor or Global).
From what I could determine, Visual Studio doesn't support expanding and collapsing for this file type.
There is a sort of workaround, although it has its limitations. You can manually select regions in a given file that you'd like to hide and press Ctrl+MCtrl+H (also found in the Edit->Outlining menu) to hide them. Visual Studio will "remember" that you want these specific regions to be hideable, and you can now show and hide these sections with the outlining commands (for example Ctrl+MCtrl+A will hide all sections, and Ctrl+MCtrl+X will show all sections, depending on your keybindings).
This isn't a perfect solution by any means, because you need to set up the regions manually. But it might come in handy in some cases.
Here's an example of a .cshtml file after I set up the regions:
...and after pressing Ctrl+M+L once:

TFS Web Access and large files

When viewing a whole shelveset diff in TFS Web Access, the largest source files are accompanied with a yellow bar that says "Displayed content is truncated due to maximum viewable content limit."
When I click on that single large file to see just its diff, I get another yellow bar. This time it says "The file contents were truncated since they exceeded the maximum file content length. Browse to the individual files to download full content."
Okay, maybe this tool just won't show large files to me.
How do I "browse to the individual files" as the yellow bar suggests? Will that give me both versions that I need to diff (shelved and unmodified)?
Is the size limit configurable anywhere?
Is there any way to use TFS Web Access with a
user configurable diff tool? (I would have many other good uses for that.)
The only workaround I am aware of is to open Visual Studio, painfully look up the shelveset, and view it using my configured diff tool which doesn't care whether the source files are obese or not.
I'm using TFS version 12.0.30324.0.
If you select just a single file you should get a download button. Clicking this will retrieve just that single file in it's entirety.
On non-shelvesets it's next to the edit button, but I dought that edit is available on shelvesets.
After asking, I discovered some other ways to search and found out that this limitation is specific to TFS 2012 and unpatched TFS 2013. Maybe this helps someone.
(This does not solve my own problem as I cannot quickly achieve TFS server upgrade so I'm still interested in a better answer. I'd like to extend my knowledge of TFS Web Access and I found the online resources lacking.)

Is in the Team Explorer the pending changes window customizable

When you open a changeset in Visual Studio 2013 the details are displayed in the Team Explorer window. In the Related Work Items area are displayed all work items associated with that changeset.
On mouse-over that work item you can see the details (title, state, assigned to, ...) of the work item in a small window.
It's possible to customize that window?
I'd like to display some custom fields that we have in the task work item.
There's no officially supported way to do that (no public API). If you are willing to accept the risk of your extension breaking in a future update, you can certainly hook in and modify it.

How to View a TFS Work Item in MS Project in a Visual Studio-like Form

I'm using MS Project to manage my TFS work items. The standard Summary Task Information window that comes up when double-clicking on a task is slightly inadequate when dealing with TFS work items. It lacks the standard work item view that we're accustomed to within Visual Studio, and that MS has elegantly rendered within visualstudio.com.
I noticed today that if I set a task field to invalid value, then Work Item Publishing Errors window comes up and there's a nifty little button Edit Work Item... that displays the work item in the standard VS view. Now I'm searching all over Project to figure out how to edit a work item in this view without first having to cause a publishing error. There must be some button I've overlooked in Project that opens a TFS work item up in the VS-like view, isn't there?
It's currently not possible and its also not intended to be used that way. The UI in Ms Project is the native Project UI and is mant to receive the updates to the plan and to layout the items into a new plan.
Managing the contents of the items is all meant to be done from the Web UI. With the new Work Item UI you'll be redirected to the Web whenever you need to edit a work item. Visual Studio, Excel and Project won't show you a native editor window anymore.
You'll be able to directly to the work item editor on the web from the team tab. When connecting to older versions of TFS, this would open the Work Item editor:

Attach labels to items in TFS from the PowerBuilder IDE?

We do this using the Advanced button on the checkin dialog now (with Merant, nee PVCS) but the Advanced button is disabled when I set TFS as my SCC provider. Is there a switch we can flip on either side to enable this?
Or do we need to write some custom extension?
Or can I get the TFS changeset number to associate with the change in PB?
Or am I coming at doing selective builds entirely the wrong way?
We can achieve what we want by creating a Note field in TFS and making it required on check in. The SCC interface will make the TFS check-in dialog appear & force the developer to enter a value in the field. We can then use the Note to find the associated changeset & do extracts based on the changeset. Thanks to all who looked at this.

Resources