Click here to Skip to main content
15,886,510 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
Hey guys / gals,

I have a C# solution that contains multiple projects, (A main project, and a dll project that the main project is dependant on)

So the main project has a reference to the dll project in references. Fine, but when I make it into a template and load the template from the new projects page in VS 2010, the reference to the dll project is always marked invalid, and I have to delete the reference and re-add it.

So in a nutshell...How do I get a template / starter kit to preserve this (or any other local) reference?

Thanks a million.

Sincerely
Randy
Posted
Comments
manognya kota 17-Jan-12 13:30pm    
Have a look at the below link ,if this can help

http://www.codeproject.com/KB/vb/VSNet_Project_Template.aspx

1 solution

Hi,


In the template that is created, can you find the references folder present?

Try the below steps:

a) Reference your private assemblies in the appropriate folder on the hard-drive, e.g. where they are going to be installed.
b) Export the project as a template
c) Extract the new zip file of the template
d) Open the .vstemplate file e) At the bottom of the TemplateContent node, add a References node, and for each reference, add a Reference node as a child of References


Hope this helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900