Questions tagged [customtool]
45 questions
39
votes
6 answers
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?…

Jeff Martin
- 10,812
- 7
- 48
- 74
35
votes
4 answers
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,…

jaws
- 1,952
- 4
- 20
- 27
33
votes
2 answers
How to regenerate designer code for all SpecFlow features
I've got ~30 SpecFlow feature files, and I recently removed the Foo.feature.cs files from source control because I got sick of resolving merge conflicts in Designer Generated code.
I did not exclude or remove these files from my Visual Studio…

Greg Burghardt
- 17,900
- 9
- 49
- 92
28
votes
1 answer
Step by step, how do I add a custom build step for every file of a given type in Visual Studio 2010?
The Problem
I have a bunch of custom files in a visual studio 2010 project.
I need to run a tool on those custom files when they change.
The tool generates .h files included by existing .cpp files.
I would like the tool to run as part of the build…

Charles Randall
- 6,920
- 12
- 33
- 38
25
votes
2 answers
Custom tool shortcut visual studio
Is there a way to create a shortcut for a custom tool in visual studio? At the moment I have to navigate to the tool in the solution, right click and run custom tool. It would be nice if I could either bind a shortcut key or run the tool from the…

Steji
- 580
- 1
- 6
- 17
20
votes
4 answers
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.

Will
- 463
- 1
- 4
- 9
18
votes
2 answers
Running a T4 template using C#
I have T4 template (mycode.tt) which generates a cs file. I usually right click the tt file and select RunCustomTool which internally takes an xml file and generate code for me. Now i want to run the custom tool using a c# windows application. So…

Novice
- 2,447
- 3
- 27
- 33
18
votes
6 answers
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…

Athari
- 33,702
- 16
- 105
- 146
10
votes
1 answer
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…

David Schmitt
- 58,259
- 26
- 121
- 165
9
votes
2 answers
How to register "custom tool" with Visual Studio 2017 or Visual Studio 2019 to make it work?
Background: We have a custom tool which takes the xml input and generates the cs output. A custom tool needs to register with the Visual studio in order to make it work with that version of visual studio.
What we have done: We have done the custom…

Amnesh Goel
- 2,617
- 3
- 28
- 47
7
votes
1 answer
In Visual Studio, can I make one file run another's custom tool? (in this case using Xsd2Code)
I am trying to work out if it is possible, when using a Custom Tool in Visual Studio, to have a change in the contents of one file, trigger the Custom Tool of another.
My scenario is this:
In a Visual Studio C# project, I have an "master.xsd" xml…

Rob Levine
- 40,328
- 13
- 85
- 111
6
votes
2 answers
How to deploy a visual studio custom tool?
I have my own custom tool for Visual Studio 2008 SP1. It consists of 5 assemblies: 3 assemblies with code that are used heavily in my other projects, 1 assembly-wrapper above VS2008 SDK and an assembly with the tool.
If I'd debug my tool from visual…

Aen Sidhe
- 1,181
- 12
- 25
5
votes
3 answers
Visual Studio custom tool for code generation... how do I find out what's going wrong?
I'm trying to create a custom tool for code generation in Visual Studio 2010. First I register it:
"$(FrameworkSDKDir)Bin\NETFX 4.0 Tools\gacutil.exe" /if "$(TargetPath)"
Then I add it via a reg…

Robert Fraser
- 10,649
- 8
- 69
- 93
5
votes
1 answer
How to add Custom tools to kendo editor
How can I add Custom tools to kendo editor toolbar?
I want to add spell checker,
Media manager and Cut,Copy , Paste, and cut from word, copy from word and some more tools also.
I am using Kendo editor in MVC application.

vijesh
- 1,115
- 1
- 11
- 27
4
votes
3 answers
Jenkins : How to add custom tool to my job's build environment
I define a custom tool in Jenkins and I would like to run it during a build.
In "https://wiki.jenkins.io/display/JENKINS/Custom+Tools+Plugin" I see the following :
"Then, you just need to add the tool requirement to your job's Build Environment"…

Ivajlo Iliev
- 303
- 1
- 3
- 19