Visual Studio : can't find “resource file” in list of items to add to project

丶灬走出姿态 提交于 2019-11-30 07:53:38
Slime recipe

At the top right corner you have a searchbox, try typing it there and see if it finds anything.

If it doesn't, select a text file in the new item dialog and change its 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:

  • Build Action: Embedded resource
  • Custom tool: ResXFileCodeGenerator (or PublicResXFileCodeGenerator to generate a designer class with public visibility)

UPDATE: According to the link Chris posted, my suggestion won't 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."

Some Visual Studio 2017 workloads apparently don't include this feature, notably the ASP.NET workload. The solution, as detailed here, is to run the Visual Studio Installer and add the desktop development workload.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!