How to add a resource file in visual studio
Asked Answered
B

1

8

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

Barron answered 3/6, 2015 at 5:54 Comment(0)
V
9

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

Vantassel answered 3/6, 2015 at 5:58 Comment(7)
I tried the same thing but i am not able to find the resource fileBarron
@Barron What is version of your Visual Studio?Vantassel
microsoft visual studio premium 2012 version:11.0.50727.1 RTMRELBarron
@Barron Can you add screenshot of add new item screen here?Vantassel
@Barron I've added image in my answer.Vantassel
If you are using a later version, Visual Studio may use the "Visual Studio Installer". When installing VS this way, the available template files depend on the workloads you choose to install. For a resources file template, you will need to include one of the Windows workloads for it to be available.Jumbled
@Barron add to project, not solutionMarcosmarcotte

© 2022 - 2024 — McMap. All rights reserved.