将图像添加到Visual Studio中的项目 [英] Adding an image to a project in Visual Studio

查看:572
本文介绍了将图像添加到Visual Studio中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过在项目上单击鼠标右键并添加一个新文件夹,将文件夹添加到了项目中.现在,我将图像添加到了文件夹中(使用Windows File Explorer中的复制粘贴),但是解决方案资源管理器没有显示我添加的图像.我也确实刷新了解决方案.

I added a folder to my project by right clicking on the project and adding a new folder. Now I added the image to the folder (using copy paste in Windows File Explorer), but the solution explorer is not showing my added image. I did refresh the solution as well.

此外,在该文件夹中,没有添加图像的选项,只有Visual Studio文件(新项等).

Also, in that folder, there is no option of adding an image, only Visual Studio files (new items etc)..

为什么解决方案资源管理器不显示我的图像?

Why isn't Solution Explorer showing my image?

推荐答案

  • 您只需要拥有一个现有文件,打开文件夹上的上下文菜单,然后选择Add => Existing item...

    • You just need to have an existing file, open the context menu on your folder , and then choose Add => Existing item...

      如果您已将文件放置在项目结构中,但尚未包含该文件,则可以在解决方案资源管理器中将其显示为可见

      If you have the file already placed within your project structure, but it is not yet included, you can do so by making them visible in the solution explorer

      ,然后通过文件上下文菜单包含它们

      and then include them via the file context menu

      这篇关于将图像添加到Visual Studio中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆