c# - multi-file itemtemplate should only add one of it's files once, even if the item is added many times -


i have solution holds vsix project , itemtemplate project. item template has multiple files added when used. looks this:

<projectitem replaceparameters="true" targetfilename="commands\$fileinputname$command.cs">commands\templatecommand.txt</projectitem>  <projectitem replaceparameters="true" targetfilename="descriptions\$fileinputname$.xml">descriptions\template.xml</projectitem>  <projectitem replaceparameters="true" targetfilename="ui\$fileinputname$designer.cs">ui\templatedesigner.txt</projectitem> <projectitem replaceparameters="true" targetfilename="ui\$fileinputname$designerdialog.cs">ui\templatedesignerdialog.txt</projectitem> <projectitem replaceparameters="true" targetfilename="ui\$fileinputname$designerdialog.designer.cs">ui\templatedesignerdialog.designer.cs</projectitem>  <projectitem replaceparameters="true" targetfilename="usercontrols\uctextbox_label.cs">usercontrols\uctextbox_label.txt</projectitem> <projectitem replaceparameters="true" targetfilename="usercontrols\uctextbox_label.designer.cs">usercontrols\uctextbox_label.designer.cs</projectitem> 

this adds class file, xml file, windows form , user control. froblem lies user control. universally usable items added template, has created once. there possibility of adding logic file checks existence of user control? or there place somewhere else?

i.e. : if i'm adding 3 items using template, want user control added once.


Comments

Popular posts from this blog

4x4 Matrix in Python -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -

python - PyInstaller UAC not working in onefile mode -