Partager via


How to use a Resource File in a SharePoint project

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

By using a resource file, you can provide localized names, define properties, and apply permissions tor objects that are defined in a Business Data Connectivity (BDC) model. To specify this information, you add a Business Data Connectivity Resource item to a project that contains a Business Data Connectivity Model item. Then you specify names, properties and permissions by editing the XML for the resource file.

To add a BDC resource file to a SharePoint project

  1. In Solution Explorer, expand the folder for the SharePoint project, and then choose the folder that contains the BDC model.

  2. On the menu bar, choose Project > Add New Item.

  3. Expand the SharePoint node, and then choose the 2010 node.

  4. In the Add New Item dialog box, choose Business Data Connectivity Resource Item.

  5. In the Name box, specify the name of the resource file, and then choose the Add button.

    A resource file that has the .bdcr extension is added to the project and opened for editing.

  6. Add XML to define the localized names, properties, and permissions that you want to apply the BDC model.

    For information about how to define these elements, see Model and Resource Files.

See also