Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude folders on publish project using "dnu publish"

How can I exclude folders from wwwroot using "dnu publish" command.

Example: in my project exists many folders

I need exclude wwwroot/lib and wwwroot/source.

I´m using clr 1.0.0-beta7-12302

like image 668
Túlio Nogueira Avatar asked Aug 04 '15 22:08

Túlio Nogueira


1 Answers

The wwwroot folder is treated differently. It is called a webroot. The content in this folder doesn't go through globbing during publish (see here). It is recommended that source code and output are put out of the webroot.

Do you have scenario that you have to store source codes and binaries in this folder?

like image 55
Troy Dai Avatar answered Nov 15 '22 09:11

Troy Dai