简体   繁体   中英

Cant add the files in web application

I have developing a Asp.net webApplication with C#.

I downloaded a CSS file and stored in Sytles folder. The image description is shown below.

CSS文件下载

Now in aspx page when i tried to add the href link its not showing the files. I have rebuild the solution. But still its not showing. Do i need to add any references?

找不到文件

How to overcome this?

You need to include the files in your project.

Read MSDN: How to: Add Existing Items to a Project .

You have to include the folder in your project first. Here is a step by step about how to include files/folders in your project.

For example, I have a project, now I want to include a XML file named Places.xml to my project.

It won't be visible in your solution explorer at first. You have to click Show All Files to see it.

显示所有文件

Right click the file, choose Include in Project .

包含在项目中

Now, you can see its icon turn brighter.

完成

Re-build the project, and that's all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM