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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since I needed an answer for this and had to make it myself, here is the solution for “Run Custom Tool”.
If you just need to run all your T4 templates again, then since VS2012 there is Transform all T4 in the Build menu.
For VS2017 they have removed macros, so follow https://msdn.microsoft.com/en-us/library/cc138589.aspx and make a plugin with your menu item instead. E.g. Name your command RefreshAllResxFiles, and paste this file in (The default command set doesnt include the dlls for VSLangProj, so just find the appropiate package in NuGet):
And the old solution for macro: