Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a resource file in visual studio

I want to add a resource file to my project in Visual Studio. But I am not able to find from where I can create the resource file. Can anyone help me out in this

like image 522
appu Avatar asked Jun 03 '15 05:06

appu


People also ask

How do I add a resource in Visual Studio?

In Solution Explorer, open the shortcut menu for the name of a feature under the Features node, and then choose Add Feature Resource.

How do I add a file to Visual Studio?

You can add existing files to your project by right-clicking on the Project node and selecting Add > Add Files.... Alternatively, to add an entire folder, select Add > Add Existing Folder.... The file browser is shown. It lets you search your system for the required item to add.


1 Answers

Right click on Solution > Add New Item > Visual C# > General > Select Resources File (Resource1.resx)

As per ShooShoSha: You need to have one of the "Windows workloads" installed in "Visual Studio Installer" for the "Resource File" to be available.

Add New Item dialog

like image 187
Rahul Nikate Avatar answered Sep 27 '22 23:09

Rahul Nikate