ASP.NET Core: Exclude or include files on publish

前端 未结 9 840

There were before aspdotnet1.0 include/exclude sections on project.json file

{
  \"exclude\": [
    \"node_modules\",
    \"bower_c         


        
9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 05:27

    For Visual Studio 2019, I managed to exclued a wwwroot subfolder named "dummy" (including all subfolders of "dummy") from publish output using the following code:

    
      
        Never
      
    
    

    Note: The requirement was to keep the wwwroot and its subfolder(s) included in project but just exclude while publishing.

提交回复
热议问题