I have XNA Game Project (game) with (by default) contains a nested Content Project.
I want to reuse this nested Content Project in another Project (game editor) in the same solution.
I've added Content Reference, but content files are not copied to the output directory (content directory is created but empty).
Somebody know how to solve this ?
I got the answer...
The solution is to add a Game Library project and add a reference to Content Project to Game Library project. After that simply refer to Game Library in all the projects that needs access to Content Project:)
Some references:
http://xboxforums.create.msdn.com/forums/p/35208/202471.aspx#202471
Related
I am using two different project within one workspace. I have one base(Say Unity-iPhone) project and i drag and drop another iOS project (Say InnerApp). Each file and folder are visible in base project as attached screenshot. I have also added the dependency in build phase of base project, and set the other linker flag and header search path.
Now I want to access the InnerApp classes and storyboard file in base project.
Now My problem is that, I want to launch the Inner App Main.storyboard into base project. But InnerApp classes are not accessible into base project.
Please guide me. Thanks.
You can follow some great step-by-step instructions on how to add static library dependencies while using multiple projects.
Use below urls -
Include one project into another one
Include static libraries into another one
I'm trying to add the GPUImage library to my project, and I'm following the directions given on the GitHub page to use it with Swift.
I drop the .xcodeproj in, but it appears to just link to where it is in my ~/Downloads folder. How do I add it to my project itself? Where is the proper place to add a framework into a project? Am I even doing it correctly by dragging the xcodeproj into the main xcodeproj of my app?
The way I usually do this is to set up a directory for the framework at the same directory level as your application project (ex: ~/Development/GPUImage, ~/Development/YourProject). I prefer to have the code for the framework outside of the code for my projects for cleanliness of version control, but that's a matter of personal preference.
The instructions for the setup of the framework assume that you already have a set location for your GPUImage code in your filesystem (~/Downloads is probably not that place). Pulling in the .xcodeproj merely links to that location. You'll also need to know that location to set where the framework header search path is.
Can I reference a Content Project to a Non-XNA project (MonoGame, if it's important)?
Not directly.
The ability to add a content project reference to a project is only available for projects of the types "XNA Game" and "XNA Game Library".
One trick that I use when I want to build and include an XNA Content Project in a WinForms project is to make an empty XNA Game Library project. Reference the XNA Game Library project from the main (Windows) project, and the Content Project from the XNA Game Library project.
Whether this will work for MonoGame is another matter.
The alternative is to simply have a blank XNA Game project that references the content project. Then set up the project dependencies so the XNA Game will rebuild first if necessary. If you need to copy the output files around, perhaps do it as a post-build step?
The sledgehammer option would be to create a custom MSBuild file that does exactly what you want.
I know you already have it solved but yesterday I was having the same problem, Tom Spillman sent me this link:
https://github.com/mono/MonoGame/wiki/MonoGame-Content-Processing
So apparently you can reference it directly
I don't understand why when I add files to my project using add existing files from project try it does not copy the file to my project, it just copies the reference to the file.
In TextMate, a project is nothing more than a collection of references to files you can edit simultaneously. It enables you to have them open in a drawer and as tabs as you will most certainly know already. But a TextMate project is not intended to be a file manager. More information on handling files inside a project can be found at the TextMate manual.
Add the folder to your project drawer on the left then you will be able to drag the files from there into your Rails project.
I was running to the same problem with trying to add existing files to a folder in my project, it would not change the reference.
I'm trying to pick up some better code organization practices. Over time, I've developed a collection of utility-type files that I import into all of my iOS projects. Rather than continuing to copy them in, I want to setup a separate "Library" project which builds these files to a static library. Then, I reference the static library in my app's project.
In Xcode 4.2 I created a new project "JTLibrary" with a static library as the target, added some files, and it builds as expected.
Now, I created a new project "LibraryTest" which should behave like any other app project I might be working on. My understanding was that I should be able to drag the JTLibrary project into this project to create a cross project reference. Once that was done, I would link LibraryTest's binary against the static library from JTLibrary.
However, when I drag the JTLibary project into the LibraryTest project, it does not appear expandable. I expected I should be able to see the files in it, etc. See screenshot below:
Can anyone offer some insight to why the project appears like this rather than expandable? Once it is expandable, I should be able to see the static library in the app's project.
Thanks!
EDIT 11/7
It's worth mentioning that I'm working with a VERY basic project now. From the new project window, select Framework & Library >> Cocoa Touch Static Library. Add one function to the default class and build.
I can copy the header and .a files into another project and use them successfully, but if I try to drag the project itself, it appears like the picture above.
To create a subproject simply drag a project node from Finder into Xcode.
DO NOT open two Xcode instances and drag the project node from one to the other (that's why the subproject is not expandable).