Creating a VS 2010 Project with only content files.

Posted by Cameron Peters on Stack Overflow See other posts from Stack Overflow or by Cameron Peters
Published on 2010-04-27T16:57:37Z Indexed on 2010/04/27 17:43 UTC
Read the original article Hit count: 280

Filed under:
|
|

I have some content files that I would like to share between a number of projects in Visual Studio.

I have put these files in their own project, set the build action to "Content", and the copy to output directory to "Copy if newer". I would like all these files to be copied to the bin/debug directory of the projects that reference them.

I can get it to work by including a reference to the "contents" project in each of the projects that need the files, but that requires that a minimal assembly be generated (3K). I assume there is a way, using MSBuild, to make this all work without creating the empty assembly?

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about visual-studio