Including content files in .csproj that are outside the project cone

前端 未结 7 1753
忘掉有多难
忘掉有多难 2020-11-27 12:09

I have a C# project say MyProject.csproj located at \"C:\\Projects\\MyProject\\\". I also have files that I want copied into the output directory of this project. But, the f

7条回答
  •  一生所求
    2020-11-27 12:48

    To include files in a folder for a .NET Core project,

    
    
      
        PreserveNewest
      
    
    
    
      
        PreserveNewest
      
    
    

    And the items' property "Copy to Output Directory" will be "Copy if newer":
    Copy if newer

提交回复
热议问题