How to include specific folders on build with visual studio

前端 未结 4 1521
抹茶落季
抹茶落季 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条回答
  •  天命终不由人
    2021-01-04 14:09

    While the above answers are correct (and should be marked as so), there may be another scenario where your applications resources may not be static (and therefore cannot be added as resources to the solution). In these cases you can use a post-build command in the project properties window to manually copy files to the output directory..

    XCOPY $(SolutionDir)MyDynamicResourcesFolder*.* $(OutputDir)MyDynamicResourcesFolder

提交回复
热议问题