ASP.NET Core: Exclude or include files on publish

前端 未结 9 844

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

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


        
9条回答
  •  失恋的感觉
    2020-11-27 05:05

    With Visual Studio 2017 (tested in 15.6.5), you can right-click on the file in the Solution Explorer and set the Build Action to None.

    It will update your .csproj file like this:

    
      
      
      
      
      
    
    
    
      
      
      
      
      
    
    

    Hope this helps.

提交回复
热议问题