Hi Victor,
I've managed to set the guidance package to use different projects Ok by creating the relevant solutions files and sharing my code generating functionality. So I can now generate projects and code in C# or VB depending on which package was used (hurray!).
BUT ... my glee was short lived as I've hit a bit of an issue with taking this approach 
The code generation files I'm using create a CodeCompileUnit using a CodeNamespace object as the base to build on. This works fine until your combine this with the fact that VB automatically appends any namespace defined in code files to any default namespace defined in the project! (And we have default namespaces defined) If I remove the namespace object I cannot create a CodeCompileUnit as it requires a CodeNamespace object in order to work properly.
Is there a way I can either tell the code DOM to not generate the namespace declaration code for VB or can I use parameterised T4 templates to achieve the code generation instead?
If I should be using T4 templates, can you explain how I can parameterise the template names? I appreciate that I will need different templates for C# and VB but I don't want to have duplicate all my receipes where the template names are hard coded. I ask as I have already looked at the TextTemplateAction object and it only accepts a template name as a string rather than an expression to evaluate - and I cannot inherit from this object and extend it as it is sealed.
Further help gratefully received  Sara |