[Mono-dev] Mono.Posix Cross Compiling

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Tue Jan 6 16:25:38 UTC 2015


Hello,

> As far as I can tell, any attempt to use Conditional property in the <Reference> tag is simply ignored.  So I settle on using the kludgy hack of using different csproj files on windows & mono.  It works so I didn't spend more time on it - but if there's a more elegant solution, I'd like to know.

For OpenPetra, because we have so many assemblies, and our developers
work with all sorts of different IDEs (VisualStudio, SharpDevelop,
MonoDevelop) we generate the sln and csproj files and don't commit
them to the code repository.
If you are interested: we have written a NAnt task
generateProjectFiles to generate the project files and solution files:
https://github.com/openpetra/openpetra/blob/master/inc/nanttasks/GenerateProjectFiles.cs

The templates for the various IDEs are stored here:
https://github.com/openpetra/openpetra/tree/master/inc/template/sharpdevelop4
https://github.com/openpetra/openpetra/tree/master/inc/template/monodevelop2
https://github.com/openpetra/openpetra/tree/master/inc/template/vs2010

The package names are calculated from the directory hierarchy.

Perhaps this is useful for other projects as well.

Timotheus


More information about the Mono-devel-list mailing list