How do I exclude a folder from a project but not from publish?

前端 未结 3 2343
粉色の甜心
粉色の甜心 2021-02-19 17:20

I\'ve migrated an asp.net core project to VS2017 RC, which now supports the ability to exclude files from a project. I\'ve excluded two folders, which added these lines to my cs

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-19 17:45

    The following msbuild items taken from the dotnet new spa templates helped me to achieve what I believe you are after:

    
        
        
    
    
    
        
        
        
        
    
        
        
            
            
                %(DistFiles.Identity)
                PreserveNewest
            
        
    
    

提交回复
热议问题