codecodeNinja
codecodeNinja

Reputation: 187

Visual Studio 2013 shared folder between two projects in one solution

i wonder is that possible to use relative path to access a folder outside the project? Example: project A and project B in one solution retrieve the same image from the same folder. I had try to save the folder in C:\ but it is block the file access. I also had tried file:///C:\Image\ but still cant make it... Anyone had any idea about this?

Upvotes: 0

Views: 172

Answers (1)

Roman Patutin
Roman Patutin

Reputation: 2210

You can use content links for all files in some directory outside of project dir.
For example this code inside csproj file

<Content Include="..\Common\**">
  <Link>Common\%(Filename)%(Extension)</Link>
</Content>

will add links to all files inside the folder ../Common.

Upvotes: 1

Related Questions