How to include specific folders on build with visual studio

前端 未结 4 1514
抹茶落季
抹茶落季 2021-01-04 13:35

I want to include a folder with the build in visual studio. This folder contains my .sqlite file and I need it with my exe file. I was wondering where in visual studio I can

4条回答
  •  萌比男神i
    2021-01-04 14:09

    A little late but I had the same question but wanted to include an empty directory.

    I found this MSDN blog post: http://blogs.msdn.com/b/webdevelopertips/archive/2010/04/29/tip-105-did-you-know-how-to-include-empty-directory-when-package-a-web-application.aspx

    By design, Visual Studio 2010 will skip the empty directory when packaging web application project using web deploy. To get empty directory packaged and deployed, we can work around this by adding an empty stub file inside the directory to make it non-empty. Then web deploy will package and deploy the directory with the stub file.

提交回复
热议问题