Hi,
I have an item template that uses a base class in another assembly. Is there a way to ensure the project has a reference to that assembly and if not, add it when processing the template
Regards,
Alexander
Hi,
I have an item template that uses a base class in another assembly. Is there a way to ensure the project has a reference to that assembly and if not, add it when processing the template
Regards,
Alexander
How to add an assembly reference when processing an item template?
Chris Lively
You could make your item template fire a recipe when unfolded and have this recipe contain an action that creates a project reference. Did you try this approach
-Victor.
Flam3h
Dave27
Actually, I was referring to the declaratively way.
If you take a look at the solution template generated by GAT you will notice something like:
<WizardData>
<Template xmlns="http://schemas.microsoft.com/pag/gax-template"
SchemaVersion="1.0" Recipe="YourRecipeName">This will cause the firing of the YourRecipeName when the template is unfolded.
project2n5e0o1
That is the obvious way. I rather hoped that there is some way to do it declaratively within the remplate file....
Thanks anyway.
zx5000
Well, the idea was to have some kind of declaration (probably within the tempate) stating what assembly references the template needs. And the engine careing for the reference in the project.
I know how to do that in a custom action, yet it strucks me as a very common demand that should be available within the system.
Regards,
Alexander