properties - Problem using EnvDTE.Property.set_Value to set ProjectItem FullPath Property -
i have visual studio project wizard attempts configure vc# project override fullpath property selected files template.
the following code used within function
public void projectfinishedgenerating(project project)
string path = "some file name"; project.projectitems.item("some file").properties.item("fullpath").value = path; system.reflection.targetparametercountexception: invalid number of parameters. (exception hresult: 0x8002000e (disp_e_badparamcount)) @ envdte.property.set_value(object lppvreturn)
i know have valid projectitem object because can display original value.
i think problem fullpath property read-only. can figure out looking @ definition in msdn - http://msdn.microsoft.com/en-us/library/vslangproj.fileproperties.fullpath.aspx - has getter defined.
to call set_value, need updating property has public setter. according properties documented on fileproperties interface, settable properties are:
Comments
Post a Comment