Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include specific folders on build with visual studio

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 select the folders I want to include with the build.

like image 861
HoBa Avatar asked Sep 09 '11 07:09

HoBa


People also ask

How do I change the build output directory in Visual Studio?

Right-click on the project node in Solution Explorer and select Properties. Expand the Build section, and select the Output subsection. Find the Base output path for C#, and type in the path to generate output to (absolute or relative to the root project directory), or choose Browse to browse to that folder instead.

How do I show folders in Visual Studio?

In Visual Studio, click File > Open > Folder. Navigate to the folder, and click Select Folder. This opens the folder in Solution Explorer and displays its contents, files and any subfolders.


1 Answers

  1. show all file
  2. right click on the file -> include in project enter image description here
  3. right click on the file -> property
  4. set "Copy to output directory" as "Copy Always" enter image description here
like image 156
bla Avatar answered Sep 19 '22 21:09

bla