Search code examples
user-controlsweb-configsharepoint-2013web-parts

web.config in sharepoint webpart project


I'm creating a sharepoint project with custom webpart that includes custom user controls.

Is there any way to include a web.config file in this project?

Some of the references I'm including use the web.config file.

Thanks


Solution

  • You can use Property bags for storing configuration settings. Take a look on this post.

    You have several options to work with the Property Bags:

    • SharePoint Designer
    • PowerShell
    • Custom code
    • Codeplex solutions (as SharePoint Property Bag Settings, that provides a farm solution to work with the Property Bag using the SharePoint UI).