Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Creating Project and Item templates with folders

$
0
0

Hi

I am trying to create Project and Item Templates using Visual Studio 2010. I am able to create standard project template without any issue. Now I want to the following:

1. Here where I work, we have one big project and under that project we have folder for each application. Each folder have subfolders and c# files. How can I do the following? 

On project level I add an Item template, that adds the folder, subfolders and then the C# files? Basically, need to create folders first before adding the items in it (I don't want every one to add folders manually). Is this possible with Item Templates?

2. I have create a project template, In my items (C# files) I have used parameters 

namespace $rootnamespace$

also, the .vstemplate file has ReplaceParameters set to True. But, the project template never compiles due to '$' in '$rootnamespace$'. Secondly, if exported like that, the parameters are never replaced by actual namespace. What am I missing?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>