In Visual Studio, how can I set the Build Action for an entire folder?

前端 未结 5 678
野趣味
野趣味 2020-11-29 01:29

I have a project in Visual Studio. I need to deploy some 3rd party files along with my code. Typically I would put this files in a \"Resources\" directory and set the Buil

5条回答
  •  星月不相逢
    2020-11-29 02:25

    Create the project. Add one file as Content. Unload the project and edit the *proj file manually.

     
        
          PreserveNewest
        
      
    

    And then in the content-ItemGroup I would replace that singe file with some MsBuild wildcard expression, *.dll, or whatever.

提交回复
热议问题