Need to write Extension for Code Maps of a solution - visual-studio-extensions

I want to write an extension on dgml file. Code map of Solution in visual studio.
How do I plug-in my code on a context menu of links shown in the diagram

I'm uncertain if there are any extensibility points build into the dgml editor, but you can certainly add menu items to the "Architecture" drop down menu item with a VS extension built with the Visual Studio SDK.
You'll want to read up on developing Visual Studio extensions, so that you are familiar with how menu items (also referred to as commands) are added to the VS IDE. Also, there are two categories of windows you can display in Visual Studio. Tool Windows, and Document Winodws. You'll need to figure out which type fits your particular requirements. Generally speaking if your underlying data is stored in a file, you'll most likely want to implement a document window (also known as a custom editor or designer). For example, the window displayed after selecting "Generate Code Map for solution" is a custom designer for .DGML files.
Below are a few links to get you pointed in the right direction.
Visual Studio SDK
Create an extension with a menu command
Create an extension with a tool window
Walkthrough: Create a custom editor
VSSDK Extensibility Samples (github)
Sincerely,

Related

UWP - Is there a File Explorer control?

I'm writing an UWP app, in C# netcore. targeting min API 1809, with VS2019
I'm trying to add a ContentDialog that performs operations with storage files. And I want to add a FileExplorer control in that dialog. For selecting multiple files.
The Controls available in the XAML library, (and in the Community Toolkit Library) seems to lack the File Explorer Control. Like shown in the following image (from a very old software):
I want to add to my app something like in the image. A Visual Control for displaying files and folders, and allow to select them. Does it exists?
Please guys, I beg don't tell me to use the UWP TreeView Control because I think it sucks.
Thanks and regards!
UWP - Is there a File Explorer control?
UWP does not has exactly the same control like above screenshot, but it has TreeView control that could implement similar feature. Please check this document for more detail. And we also provide Xaml Control Gallery app that you could refer.

Customize Existing Button MS Dynamics CRM

I am pretty new at MS Dynamics CRM and trying to learn all development process by myself.
I customized a solution into MS Dynamics CRM by using the Solutions segments and published it. But there wasn't any development process. I want to change the existing button's codes. For example I want write a Select statement into 'New' button. Also I want to create a custom button and write some sample codes into it. How can I do that? I already download and install Ribbon Workbench but it doesn't give me these options (writing code samples etc.).
Should we do this into Visual Studio 2008? If we do how can I add the solution's code into there?
You are going to be using JScript in ribbon buttons. There are a lot of samples on the web for doing this. You should use a ribbon editor to speed things up.
The only tricky part is referencing your WebResource from the ribbon. You'll want to use the $webresource: notation as this example shows. You may want to check out the Visual Ribbon Editor.

A visual webpage editing tool that can support asp.net web forms tags

I've been looking hard to find a web page editor that can let me visually edit an already-designed asp.net web form page. for the whole period, I've made my page designs with Dreamweaver (now I'm using Dreamweaver CS4) and transfered my designs to Visual Studio 2010 to make asp.net pages from that template. Table editing feature for web forms in Visual Studio is really annoying and by trying to change a column width, the table structure is corrupted and VS decides to change everything on that table (compare it with Dreamweaver which only changes those two columns which their border is changed instead of the whole columns of that table).
Unfortunately Dreamweaver does not recognize the asp.net tags syntax and because of that it can not properly render them in design mode. I want to know if you know any tool (preferably non-Microsoft tool) that can let me open an asp.net web form in it and edit the page elements visually without side effects that Visual Studio causes to my page design. (I use HTML tables for arranging my page elements.)
By the way I looked at this link:
http://en.wikipedia.org/wiki/List_of_HTML_editors
but after opening all the visual editors web pages, I did not find any tool that supports ASP.net tags.
Is there a particular reason that though you are working on a Microsoft platform that you don't want to use a Microsoft editor?
MS provides two free tools that may help you:
Visual Studio Express
Web Matrix
Also, I highly recommend using CSS classes to set widths on ASP.NET generated tables/columns. (Rather than using the styling attributes for those ASP.NET controls.)
Hope this helps.
you can use AjaxControlToolkit.HTMLEditor.Editor.
Put the DLL in your project and than put in the page, than you can edit.
Create some logic to view and edit with some permission, and your page will have content editable.

CodeRush Templates and Intellisense

I am creating custom code snippet templates using DevExpress' CodeRush.
Is there anyway for me to be able to see available Templates through Intellisense so I don't have to memorize the names of all of the templates that I want to create?
You can use the CodeRush Training tool window for this purpose. Just dock it to the appropriate position (e.g. to the left side of the Visual Studio IDE) and see what code snippet templates it suggests. The window is context sensitive, so only appropriate code templates suggestions are made. I assume that after some time you will remember all useful templates you will work with.
What I ended up doing was I created visual studio snippets with the same name as the CodeRush templates in question. This allowed me to have the intellisense popup when I started to type the name of the template (b/c Visual Studio thought I was using a snippet) and then I can just hit the hotkey to use the CodeRush template.

Where can I define Conditional compilation constants for Delphi Prism?

I've just ported a Web service from Delphi.NET 2006 to Delphi Prism 2009 (running in the Visual Studio 2008 IDE). But I can't find where I'm supposed to set (or unset) the conditional compilation constants!
Am I blind, has this option been left out, or is it just not supported in VS?
[edit: thanks to Mohammed Nasman for the link] MSDN tells me to set them using the Project Designer. First, it took me a while to figure out that the Project menu is only visible when the Solution is selected (and not the web service project). Then, there's still no way to set conditional compilation constants in the Project Designer!
I just can't find a way to get to the Project Options in an ASP.NET project... Is it really not possible?
Delphi Prism uses VS How to: Declare Conditional Compilation Constants
And for Asp.net Conditional Compilation Constants and ASP.NET
If you right click on a project node (any project, not just Delphi Prism) in the solution explorer and then click on the Properties option in the context menu the project options tab-book should appear in the text editor pane. Click on the build tab, it should be the third tab down on the left hand side. The first text-box that appears on that page should be labelled "Conditional Compilation Symbols". It should already contain the symbols: "DEBUG;TRACE". You can add your own symbols there.
You can also get to the project properties tab-book by selecting the project node in the solution explorer and then clicking on the top-left hand toolbar button in solution explorer window.

Resources