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

前端 未结 3 2345
粉色の甜心
粉色の甜心 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:33

    You might be able to satisfy your needs with a Condition such as:

    
      
      
    
    

    EDIT:

    Or perhaps try:

    
      
      
    
    

    EDIT 2:

    Since it looks like the IDE is going to respect the Condition, you could instead change items from Content to None and add a BeforePublish target that adds equivalent Content items.

    EDIT 3:

    So to be specific, keep your original

    
      
      
    
    

    and add, just before

    
      
        
        
      
    
    

提交回复
热议问题