asp.net发布文件缺少文件夹和一些css文件? [英] asp.net publish files missing folders and some css files?

查看:112
本文介绍了asp.net发布文件缺少文件夹和一些css文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,



我最近尝试在服务器上发布代码。我使用文件系统选项在vs 2010解决方案资源管理器上生成发布代码。我的网站也有css,js,图像和其他一些文件夹。现在,当代码发布时,它会生成所有.aspx文件和bin文件夹,并在其中添加其他文件夹。但不知何故,一个或两个文件夹完全丢失,在css文件夹中,一个文件也丢失了。最初我没有检查,但一旦我在测试网站上发布代码,我就知道了这一点。我不确定为什么它会像这样。我想如果我们发布一个网站,它也应该复制其他内容。



不确定我是否错过任何设置?



i recently try published code on server. i used file system option to generate the publish code on vs 2010 solution explorer. my website have css , js , images and some other folders as well. now when the code publish it generate all .aspx files and bin folder and also add other folders inside it. but somehow one or two folder were totally missing and inside css folder one file was also missing. initially i did not check but once i publish the code on test site then i came to know about this. i am not sure why it behaves like this. i think if we publish a site it should copy other content as well.

not sure if i miss any settings ?

推荐答案





选择在发布时缺少的特定css或js文件。

然后转到属性窗口选择构建操作作为内容

现在尝试发布
Hi,

Select the particular css or js file which is missing at the publishing time.
And go to property window select "Build Action" as "content".
Now try to publish


这篇关于asp.net发布文件缺少文件夹和一些css文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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