包含项目中的文件 [英] include files in project

查看:72
本文介绍了包含项目中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,

我有一个Web应用程序,我们正在使用图像上传到服务器。一切都很好。我们可以从文件夹中访问图像。只是想知道上传的文件不被视为项目的一部分,如果我们在visual studio中显示这些图像,它将在解决方案资源管理器中显示为已排除的项目,并要求我们将此项目包含在项目中。可能是,有些设置需要改变吗?如果我将一些js文件直接复制到该文件夹​​并且不将其作为现有项目从解决方案中添加,则会发生相同的情况。

HI all,
i have a web application in which we are using images to upload to server. every thing works fine. we can access the images from the folder. just wondered that uploaded files are not treated as a part of project , if we show these images in visual studio it will show as excluded items in the solution explorer and it ask us to include this item in project. may be , there some settings need to change for this ? same way happen if i copy some js file directly to the folder and don't add it from solution as an existing item.

推荐答案

如果您复制粘贴,请直接在使用 Windows资源管理器到文件夹,Visual Studio将无法识别。



否则,打开 Visual Studio 和解决方案。选择一些文件夹并复制粘贴。现在它将默认显示。
If you copy paste, directly on to the folder using Windows Explorer, Visual Studio won't recognize.

Else, open Visual Studio and the solution. Select some folder and copy paste. Now it will show you by default.


这篇关于包含项目中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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