No option to open the Build process Workflow Designer - visual-studio-2010

I have a build process in TFS and I'm using Visual Studio 2010. I can view the build process in the default xml editor, but I want to open it in the Workflow Designer.
Mostly there will be an option to open the build process in the Workflow Designer or you can press Shift-F7 and it'll open it when viewing the xaml.
For some reason that has disappeared, any ideas why?
Is there any way to force VS2010 to open a xaml (or xoml) file in the Workflow Designer and / or are there any good Windows Workflow editors out there like Kaxaml for WPF / Silverlight?

I have the same condition.
I have set my default editor for .xaml to the XML editor. This speeds up the load time of the file because it does not have to load the designer, but prevents me from seeing the workflow view of a build process. There is no option in TFS to allow you to view the build in a different editor, there is only a 'View' option.
So here is my workaround:
Find a .xaml form in your solution (not a build process .xaml)
Right click the file and choose 'Open with...'
Choose 'Workflow Designer' and click 'Set as Default'
Click 'Cancel' because clicking OK will try and open the file, fail, and set the setting back.
Now go open your build process .xaml. If it was already opened, nothing will change, so close the tab and try again.
Don't forget to default your setting back.
It's not a great solution, but it works for what I'm doing.

Did you try right clicking the template file and using "Open With" and selecting Workflow Designer?

Related

Visual Studio View Code on Multiple Files at Once

I'm in the process of migrating some Web Sites to Web Applications, using Visual Studio 2017. One thing I can't seem to figure out is how do I open multiple .cs files at the same time? I can open the .aspx file for them easy enough by right clicking and choosing Open. I can view the code behind on a single page at a time by right clicking and choosing View Code. In the old Web Sites I could right click multiple files at once and select View Code, however, it appears in Web Applications that option has been replaced with "View Code Gen File" which isn't the same thing. It's painfully slow to open a single page at a time so hopefully there is a setting I am just not finding.
EDIT: As requested, uploading screenshots. Only .aspx files are selected but when more than one is selected the "View Source" option is no longer there. Also I should note that if multiple are selected in Solution Explorer, pressing F7 also has no effect, though that keystroke does work to View Source of a single file at a time.
After further experimentation, I now see what you see and I agree that it's something that Microsoft broke along the way. In fact, in your own image, if you single-select an aspx file in Solution Explorer then you can see the "<>" icon appear in the button bar at the top of Solution Explorer. But that icon disappears whenever you select two or more aspx files.
I've done a lot of work with Visual Studio over the years and I can't imagine any justifiable reason why Microsoft would have deliberately removed the View Code option from the context menu for multiply selected aspx files.
This appears to be a bona fide bug that should be reported to Microsoft.
Meanwhile, as a workaround, use the File | Open option in Visual Studio 2017 and, in the resulting Open File dialog box, simply multi-select any .cs files you need (this dialog box allows you to multi-select files and open all of them at once).

VB6 designer doesn't display opened modules

Forms and Modules in VB6 don't show when I double click them. In order to have them appear on screen I have to click Window > Cascade and everything moves into place, but when I open them from the project view nothing appears.
It seems like designer windows are displayed out of view... how can I fix this?
The form windows positioning, and which forms are open, is stored in the ProjectName.vbw file. Delete that file then open your project and the previous form windows settings are forgotten. The .vbw file should not be added to your source control system, there's nothing in it that is needed for code history reasons.

Is there a way to show the current TFS workspace in Visual Studio?

I'm looking for a way to have the current TFS workspace displayed in Visual Studio.
It's visible when I open the Source Control Explorer (or Pending Changes), but I want it to be visible too when I'm editing code. So for example showing it in the toolbar, or in the window titlebar, or in the bottom status bar, doesn't matter as long as I can see it with a single glance.
Any tips?
You can use the "Rename Visual Studio Window Title" extension https://visualstudiogallery.msdn.microsoft.com/f3f23845-5b1e-4811-882f-60b7181fa6d6 and use the [workspaceName] attribute. Hope it helps.
There is a add on that shows this info, you can dock it somewhere :
http://visualstudiogallery.msdn.microsoft.com/384a4952-6b6f-4391-bc59-1b2bd38e1baf
There are a couple of options to do this without an additional plugin.
Use the Properties view
Select the solution, a project, or any file in Solution Explorer
Press F4 to go to the Properties view. The full path to your solution will be shown.
Note that right-clicking the solution or project and selecting Properties (Alt-Enter) will take you to the Properties Pages which doesn't have the information you want.
Use the Source Control Explorer
Opening Source Control Explorer will show you the last accessed workspace. Most of the time, this will be the workspace for the solution you are working on. However, if you have had two Visual Studio sessions open for different workspaces, I have seen the first VS session switch to the workspace of the other VS session.
Use the Pending Changes view
Pending Changes will show the workspace just under the header for the view.
You can get to Pending Changes through:
Team Explorer => Pending Changes
View => Other Windows => Pending Changes
Hover the mouse over an open file, the tooltip will show the full path to the file.

"Save Copy of Package as..." option missing

In Visual Studio 2005 Professional, under Menu Bar "File", I do not have the option "Save Copy of Package AS..." which allows saving the package on the server. How do I get this option to display and be useful?
Do you mean "Save Project as..."?
If so, yeah it's kind of a pain moving a VS project. I usually just copy the directry tree using normal file copy commands, and fix up whatever problems crop up as a result manually. Usually it's not bad - most of the project information deals with relative file locations pretty well.
Kinook Software has a utility that's supposed to help with this. Try it if you think it has value:
http://www.kinook.com/CopyWiz/
You could activate it by customizing your menu. See http://asqlb.blogspot.com/2010/12/save-copy-as-is-not-option-visual.html
If grayed out, drag the selected option to the file menu and drop it under "save as".

Visual Studio 2005: Please stop opening my CS files in "Design Mode"!

I think it's associating my Web Service's CS files with the related ASMX files. But whatever's happening, I can't double-click to open the CS files - I have to "view Code" or it opens in the designer.
Anyone know how to turn off this automatic behavior? I just want to edit the code!
Try right-clicking, select "Open with...", mark "CSharp Editor" and select "Set as Default".
That works for avoiding the WinForms Designer.
I found this question when trying to deal with a similar problem. I had a C# class in a file and whenever I double clicked on the file it would try to open in design mode but design mode was meaningless for this class. I just want to see the code.
I found that adding the [System.ComponentModel.DesignerCategory("")] attribute to my class fixed this.
In the Solution Explorer view, click the "Show All Files" icon. This will put "+" symbol next to each of your files. Click the + and it will expand to show the .CS file which holds the ASMX's code. At this point, double click that file instead.
For some reason VS2005 seems to have this a bit backwards when it comes to webservices. To open a webservice in code view, double-click the .asmx file, not the .asmx.cs file.
I guess it makes a bit of sense, as there's nothing to "design" when it comes to a webservice, but it's counterintuitive if you've been working with .aspx files.
In my experience, if you find that the wrote editor, that is the non-default editor, is opening when double-clicking on a file within the Solution Explorer then something is wrong with the underlying project's User Options file (.user) or the solution's User Options file (.suo). (I am not sure which, but I suspect the settings are stored in the .suo file.) Deleting the the .suo and all project .user files solved the problem.
I personally, set the Form Editor as my default editor for forms at the beginning of a project. After the forms are stable and require less user-interface design changes, I switch the default editor.

Resources