简体   繁体   中英

Publishing with Visual Studio

When I publish my website with visual studio it deletes my image folder. I stroe uploaded pictures in that folder.

How can I stop visual studio from deleting stuff? should I use copy website option? When I use copy website opion does asp.net server compile the website automatically? Will my website work if I don't compile it before uploading?

您要发布的所有文件夹也必须包含在Visual Studio的项目中,如果它仅存在于磁盘上,则不会发布。

  1. Store your images in the App_Theme folder, then may be it will not be deleted.
  2. I don't think, Copy web site tool performs compilation. But before using it you should first buid your site.
  3. Yes, it will work, if there is no error in your site.

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