I created a project template in Visual Studio 2010. When I click on Project
-> File
-> Export Template
, I get a zip file in the Visual Studio template folder. In the solution, I have a folder named Test
.
When I create a solution from that template (from add
-> new project dialog
), I want to rename the Test
folder's name to the solution's name automatically.
How can I do that?
Visual Studio is not competent at renaming things. Open the project folder in any good text editor. Search-and-replace across the whole folder and replace and text occurrences of the old name with the new name. Sublime Text and Atom have a tree view where you can right click -> Search in folder.
TargetFolderName="Test"
to TargetFolderName="$projectname$"
This should work.
Additional info:
https://msdn.microsoft.com/en-us/library/ahkztdcb.aspx (Visual Studio project template info) https://msdn.microsoft.com/en-us/library/eehb4faa.aspx (Visual Studio template macros reference)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With