aramok
aramok

Reputation: 65

Where is Visual Studio source file directory change option

I've been trying for hours to change the source path. I couldn't find anything on project properties, and I couldn't find anything on the internet either.

I want to put all my source files in a directory named "src" like $mysolution-path)/src and I also want to put library files in the /lib directory, but I can't do it.

Where is this option? Is there an option like this. I want to keep my work clean and tidy, but it seems like it's impossible in Visual Studio unlike in IntelliJ IDE.

Upvotes: 1

Views: 15278

Answers (2)

aleci
aleci

Reputation: 41

For source files:

Project propertiesConfiguration PropertiesC/C++General there is a choice: Additional Include Directories. Create your folders manually and then add the paths.

For library files:

Project propertiesConfiguration PropertiesLinkerGeneral there is a choice: Additional Library Directories. Create your folders manually and then add the paths.

Upvotes: 3

bolov
bolov

Reputation: 75668

One way of doing it:

  1. remove your files from the VS project
  2. move the files in explorer
  3. add the files to the VS project

Upvotes: 4

Related Questions