customtool

Using Studio's "Custom Tool" in MSBuild

I've got a "Custom Tool" for Visual Studio to munge some template files into code. For consistency and portability I'd like to be able to run this template processor from MSBuild when building outside of Visual Studio. Visual Studio creates the following snippets for the files: <!-- the template --> <None Include="Template.in"> <Gene...

How do I Debug a SingleFileGenerator/ Custom Tool?

I am building a Custom Tool code generator using the Visual Studio SDK and basing it on the SingleFileGenerator example. My question is how to enter debug mode on this code? I can currently add my custom tool to a file in Visual Studio but it errors out, I'd like to be able to debug this code if possible. ...

How do I write to the Visual Studio Output Window in My Custom Tool?

I am writing a custom tool and I currently have it doing what I want as far as functionality. I would like to be able to write to Visual Studio if something goes wrong. (Incorrectly formatted code or whatever). Are there any standards for this? Right now I basically can force the tool to fail and Visual Studio puts in a warning that i...

Language neutral custom tool

I'm working on a DSL tool, and for this tool, there exists a custom code generation tool that creates output files. Currently, this tool is registered with C# using a RegistrationAttribute on the DslPackage with the following code: class FileGenerationRegistrationAttribute : RegistrationAttribute { private const string CSharpGenerat...

Run Custom Tool for entire solution

Is there a way to 'Run Custom Tool' for an entire solution? Why? The custom tool is under development and when changes are made I need to refresh all the items that use it to make sure nothing breaks. ...

How to deploy a visual studio custom tool?

Hello. I have a my own custom tool for Visual Studio 2008 SP1. It consists of 5 assemblies: 3 assemblies with code that used heavily in my other projects, 1 assembly-wrapper above VS2008 SDK and assembly with the tool. If I'd debug my tool from visual studio, using "Run external program" option with command line "C:\Program Files (x86)...

How to output in the the log window in perforce client p4v using custom tools.

We're developing perforce custom tools in python and we're outputting messages during the script execution. It shows up in p4win but we're mainly using p4v and the output doesn't show up in the log window. Is there a way to output there or in any other pane without resorting to run the tool in a terminal window ? Thanks ...

How to hide files generated by custom tool in Visual Studio

I would like the files generated by my custom tool to be hidden, but I cannot find any documentation on how this is done. An example of what I'm looking for is WPF code behind files. These files are not displayed in the Visual Studio project view, yet are compiled with the project and are available in IntelliSense. WPF code behind fil...

How do I add support for a file extension for a custom tool in visual studio 2010?

I have a custom tool "NafestisGenerator" of which I need to apply to every ".ntf" file. The question is, how do I tell visual studio (suing the Custom tool Generator sample from Microsoft) to use the "NafestisGenerator" custom tool on every ".ntf" file? (vb.net) ...

How to stop T4 from executing every time I switch to another tab?

When I edit T4, the script is executed every time I switch to another file. It is OK for quick simple scripts, but some scripts take long time to execute. Is there a way to disable this behavior? I want the script to run only when I save T4 file or manually choose "Run Custom Tool" from the menu. ...

Custom tool error Failed to generate code.

Why this error is appearing? I was just setting some default values in a dataset designer... its second time that this is appearing... "Custom tool error Failed to generate code. Exception of type 'System.OutOfMemoryException' was thrown" ...