Hi,
I have a specific requirement for creating a multi project template.
My requirement is as follows
1. My Target project template should contain multiple project
2. First project is of type library and second project is an exe (has main block) to exectue the code.
3. I am using $safeprojectname$ for my first project name and hard coded my second project name.
4. Created a Solution level vstemplate file to hold these two projects.
I am success upto this level. Facing problem for the below requirement
a. My first project has to be referenced to the second project. I have used BuildOnProjectLoad for the first project and dll is created when target project is created. I need to reference this dll to the second project and i need to use $safeprojectname$ of first project in second project.
Ex: Target Solution has following structure
Sol
- Project1
- Project2
project1 (project1.dll) has to reference automatically to project2 (name project1 depends on the name of the sol while creating) and i want to use import statement in project2 like
import project1(depends on name of the solution).xx.xxx
my point is how to call $safeprojectname$ of project1 in project2
Please help!
Thanks