[Mono-osx] Info.plist file location in MonoMac project
stevenspencer01 at gmail.com
Tue Feb 7 11:32:31 UTC 2012
> Like other bundle resources, the relative path within the project
> reflects the relative path in the app bundle. Anything else would be
> I've bene considering providing a way to keep bundle resources
> (including Info.plist) into a Resources subfolder in the project, to
> aid project organization.
thanks for that. If you are currently thinking about this, can I put in a
As I'm sure you are aware, when files get added to the project, their
entries in the csproj file can look something like this:
i.e. when adding files to a project, you can "add as a link". In this case,
the actual file resides somewhere else in the file system, as defined by the
"Include" attribute, but the file appears to be organised within the project
according to the path defined in the <Link> element, relative to the root of
the project. In the case where a file is created in the same directory as
the csproj, the file's actual path and its project path are effectively the
same. It is the project path that determines how the file is organised
within the project in the solution pane of MonoDevelop.
Can I request that any build process uses these more abstract project paths
in determining what files to build and where to put the outputs. This would
mean that the organisation as seen in MonoDevelop would be the determining
factor in how the project is built, which makes some sense to me and
conforms to your initial statement of "the relative path within the project
reflects the relative path in the app bundle". Then, the actual file paths
would only ever be used to retrieve the contents of the file.
Consider these files in a project as an example:
/Info.plist -> Builds to
/Resources/Image1.png -> Builds to
/Resources/Image2.png -> Builds to
The paths on the left are the project paths of the files i.e. these define
how the files are organised in the solution pane of MonoDevelop. The actual
locations of the files on disk could be anywhere. In this case, I think it
is reasonable for the MonoDevelop build process to impose your statement of
"the relative path within the project reflects the relative path in the app
bundle". Just to clarify, I do **not** have a requirement that would do the
/Some/Random/Folder/Info.plist -> Builds to
i.e. the Info.plist can appear anywhere within the project.
Hope this makes sense and I'm not rambling too much. Maybe it is not really
feasible for some other reason that I'm not aware of, but hopefully it is.
View this message in context: http://mono.1490590.n4.nabble.com/Info-plist-file-location-in-MonoMac-project-tp4351279p4364428.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx