description
using cps (see link 1 , link 2), have created new project type (let *.myproj
) visual studio: file > new project > visual c# > extensibility > project type
when debugging, fine. however, when deploy (install) vsix
package pc, , try create new project ('.myproj') using custom project template (myproj), following error:
the reason in projecttype.myproj
in projecttemplate
have code:
<propertygroup label="globals"> <customprojectextensionspath> $(localappdata)\customprojectsystems\projecttype4\ </customprojectextensionspath> </propertygroup> <import project="$(customprojectextensionspath)customproject.default.props" /> <propertygroup condition="'$(configuration)|$(platform)'=='debug|anycpu'" label="configuration"> </propertygroup> <propertygroup condition="'$(configuration)|$(platform)'=='release|anycpu'" label="configuration"> </propertygroup>
i figured, after building , running project visual studio, folder , it's files created:
(localappdata)\customprojectsystems\projecttype4\
customprject.default.props
customproject.props
problem
however, when install vspackage on pc first time, folder , it's files not automatically created, hence, runtime error in screenshot.
workaround
- i manually copy files other pc works fine.
- i remove lines of code mentioned above, (this cause not able use own icon project node. since vs won't release project type.)
question
- why these files not automatically copied clients machine?
- is there specific settings or configurations missing?
found out issue: project types should not require msi deploy build authoring