Click here to Skip to main content
12,816,490 members (33,648 online)
Rate this:
Please Sign up or sign in to vote.
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.

Posted 10-Mar-11 16:23pm
manognya kota 17-Jan-12 13:30pm
Have a look at the below link ,if this can help

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 3


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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 17 Jan 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100