Click here to Skip to main content
11,415,390 members (86,994 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# VS2010 Templates
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 at 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
0 Sergey Alexandrovich Kryukov 9,270
1 OriginalGriff 7,512
2 Maciej Los 3,710
3 Abhinav S 3,325
4 Peter Leow 3,084

Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | Last Updated 17 Jan 2012
Copyright © CodeProject, 1999-2015
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