microsoftarchive / openFrameworks

OpenFrameworks is a cross platform open source toolkit for creative coding in C++.
http://openframeworks.cc
Other
39 stars 24 forks source link

Project generator doesn't add assets within folders in data directory #34

Closed steven-chith closed 10 years ago

steven-chith commented 10 years ago

Need to recursively add the files within the directories of the data folder to the solution.

stammen commented 10 years ago

There is a way to do this automatically by adding code to the winrt app's vcxproj file. Look at how we did it in cocos2d-x

https://github.com/MSOpenTech/cocos2d-x/blob/v2/samples/Cpp/TestCpp/proj.winrt/TestCpp.vcxproj

Search for the word RecursiveDir. Add the code to the OF app .vcxproj file

You will need to modify the path specified by <_CustomResource Include="..\Resources*_\_"> to point to the data or bin dir.

This method was suggested by the Visual Studio team.

<_CustomResource Include="..\Resources*_\_"> Assets\Resources\%(RecursiveDir)%(FileName)%(Extension) true