Add namespace dynamically in Itemtemplate using VS2010 SDK and IWizard interface
-
Wednesday, June 27, 2012 11:41 AM
Hi,
My Requirement is to create a Project template and Item Template using extensibility projects in VS2010 SDK.
I have created a class in itemtemplate class library using extensibility projects. Here,i gave some placeHolders in namespace section where there are replaced by some static values in customparameter section.Below is the codesnippet of the above explained one
PlaceHolders in Class
using $ABCFramework$
CustomParameter Section in vstemplate file in Item Template Project
<CustomParameter Name="$ABCFramework$" Value="ABC.Framework;"/>
In the above class,how will i add the namespace dynamically using VS2010SDK and IWizard interface.
Could you please help me for the above question
Thanks in Advance!!
- Moved by Jean-Marc PrieurMicrosoft Employee, Moderator Thursday, June 28, 2012 11:07 AM this is a VSX question (From:Visual Studio Visualization & Modeling SDK (DSL Tools))
All Replies
-
Friday, June 29, 2012 5:16 AMModerator
Hi Rayachoty,
Thank you for posting in the MSDN forum.
Here is a list of template parameters and some sample code:http://msdn.microsoft.com/en-us/library/eehb4faa.aspx
You can specify variable file names for project items by using a parameter with the TargetFileName attribute through using $projectname$.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by Ego JiangMicrosoft Contingent Staff, Moderator Wednesday, July 04, 2012 9:09 AM
- Marked As Answer by Ego JiangMicrosoft Contingent Staff, Moderator Thursday, July 05, 2012 6:43 AM
-
Thursday, July 05, 2012 6:43 AMModerator
Hi Rayachoty,
I marked my reply as answer.
If you feel it is not the answer what you want. Please unmark it.
Thank you for your understanding and support.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us

