Click here to Skip to main content
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 15: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 CPallini 385
1 BillWoodruff 334
2 Sergey Alexandrovich Kryukov 333
3 George Jonsson 285
4 OriginalGriff 267
0 OriginalGriff 5,095
1 CPallini 4,285
2 Sergey Alexandrovich Kryukov 3,767
3 George Jonsson 2,941
4 Gihan Liyanage 2,386

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