Add external tools to Visual Studio

External tools in Visual Studio are great "Add-Ons". There are so many usefull tools, you just need to know them. For example you can create .NET classes out of XML-Shemas(XSD) or add DLLs to the Global Assembley Cache (GAC) of a server.
To configure an external tool you need to call Visual Studio 2010 or above. Press "Tools" and go to "external Tools...". A mask appears.





















In the picture you can see that I already added a tool to add assembleys to the GAC. (Command: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe Arguments: /i "C:\iTextSharp.dll" look at this post to see the story for this tool).
To add your tool you need to press "Add". A new item appears in the list. Now you can add the command with its parameters.
Title: XSD
Command: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\xsd.exe
Arguments: $(ItemPath) /c /l:cs
Initial directory: $(ItemDir)
Now you have created the XSD to C#-Class parser (enter "/l:vb" for "/l:cs" in the Arguments to get a class in Visual Basic.NET). The file will be stored in the same directory as the shema file. All your added tools will appear in the Tools-menu and will start by clicking them.

Comments

Popular posts from this blog

SharePoint Framework Field Customizer project with multiple columns

First click in SharePoint List WebPart on wiki pages

Get the mail address from a FieldUserValue Client Side vs Server Side