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

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -