Contentless/Contentless/Contentless.targets

12 lines
828 B
XML

<Project>
<Target Name="Contentless" BeforeTargets="BeforeBuild">
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
// We use mono to run Contentless when we're not on Windows. This isn't pretty, but it'll do until we switch to the new task system.
<Mono Condition="Exists('/Library/Frameworks/Mono.framework/Versions/Current/bin/mono')">/Library/Frameworks/Mono.framework/Versions/Current/bin/mono</Mono>
<Mono Condition="Exists('/usr/local/bin/mono')">/usr/local/bin/mono</Mono>
<Mono Condition="Exists('/usr/bin/mono')">/usr/bin/mono</Mono>
<Mono Condition="'$(Mono)' == ''">mono</Mono>
</PropertyGroup>
<Exec Command="$(Mono) $(MSBuildThisFileDirectory)/../tools/Contentless.exe @(MonoGameContentReference)"/>
</Target>
</Project>