How do I create a Resources file for a Console Application?

后端 未结 5 764
耶瑟儿~
耶瑟儿~ 2021-01-11 13:36

I\'m trying to use an embedded resource in a console application, but apparently console applications don\'t come with a resource file automatically. How do I create a reso

5条回答
  •  無奈伤痛
    2021-01-11 14:01

    Right click on the console application project node in the solution explorer. Add->New Item->Resources File.

    edit: as has been pointed out, if you open the Properties of the console app project, it will also have a Resources tab, which will tell you that it doesn't have a resources file and provide you with a link to create one. This will do the same thing as the above, except that it will create the files under the Properties folder.

提交回复
热议问题