I'm on VS Community 2017 RC. I'd like to add a resource file (.resx) to my project but this item type is not listed in the items
Have I missed something ? Do I need to install anything on top of my Visual Studio to be able to manage resource files ?
At the top right corner you have a searchbox, try typing it there and see if it finds anything. It should now open the new file with the resources designer. Now open the properties pane for that file (right click it in the solution explorer) and make sure it has the following set: Build Action: Embedded resource.
In Visual Studio, open a SharePoint solution. In Solution Explorer, choose a SharePoint project node, and then, on the menu bar, choose Project > Add New Item. In the Add New Item dialog box, choose the Global Resources File template, and then choose the Add button.
Open Solution Explorer add files you want to embed. Right click on the files then click on Properties . In Properties window and change Build Action to Embedded Resource . After that you should write the embedded resources to file in order to be able to run it.
In Solution Explorer, open the shortcut menu for the name of a feature under the Features node, and then choose Add Feature Resource. This step adds a resource file to the feature in the format, ResourceFileName.culture.resx, such as, Feature1.en-US.resx. When the Resource Editor opens in Visual Studio, add resources to the resource file.
You can work with resource files and resources from within your project. You can also work with ones that aren't part of the current project or were created outside the development environment of Visual Studio. For example, you can:
The commands for adding resource files is on the shortcut menu of the solution node and feature nodes in Solution Explorer. For more information, see Localizing SharePoint solutions. In Visual Studio, open a SharePoint solution. In Solution Explorer, choose a SharePoint project node, and then, on the menu bar, choose Project > Add New Item.
Adding Files to Visual Studio Projects. 1 Ctrl-N to open new Item Dialog. 2 Ctrl-E to Search box. 3 Type search text like WPF Window. 4 Tab to list and scroll to item (if necessary) 5 Tab to filename and change. 6 Press Enter to add file.
At the top right corner you have a searchbox, try typing it there and see if it finds anything.
If it doesn't, create a text file from the new item dialog and change the extension to
resx
It should now open the new file with the resources designer. Now open the properties pane for that file (right click it in the solution explorer) and make sure it has the following set:
NOTE: According to the link Chris posted, my suggestion may not help if you have the express edition of visual studio.
Visual Studio Express editions do not support Resource View's. It is commonly recommended that you make your way to the Visual Studio Community editions to take full advantage of such features.
Here is the MSDN link that notes the feature not being supported.
Additionally, maybe you can try this:
Right click your project and go to properties >
Click 'Resources' > and then you may see:
"This project does not contain a default resources file. Click here to create one."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With