Click here to Skip to main content
11,706,979 members (46,260 online)
Rate this: bad
good
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.

Sincerely
Randy
Posted 10-Mar-11 15:23pm
Comments
manognya kota at 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

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

Solution 3

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.
  Permalink  
v2

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 140
1 OriginalGriff 125
2 chainerlt 110
3 ppolymorphe 99
4 Mika Wendelius 70
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,487
2 CPallini 5,189
3 Maciej Los 4,766
4 Mika Wendelius 3,696


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | 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