Web Part Function and XML File Reading

I deployed a custom web part as a function. I used STSDEV to create Feature and supporting config files. I ran into some problems while trying to add a simple XML file to contain the values ​​that I need to read. Where do I put the XML file in the Feature project and what do I need to do to access this file? After trying this a few times, my web part still shows up, but no longer appears in the list of features to be activated through the browser interface ... does anyone have any info on this? :-)

0


source to share


1 answer


If you need this simple xml as a configuration for your website, you can specify it as one of the parameters in your * .webpart file. You will have to code this file, this approach worked, at least in our project.



+1


source







All Articles