Skip to content

Instantly share code, notes, and snippets.

@jonathanpeppers
Created August 21, 2012 02:02
Show Gist options
  • Save jonathanpeppers/3410581 to your computer and use it in GitHub Desktop.
Save jonathanpeppers/3410581 to your computer and use it in GitHub Desktop.
Project include
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<WildCard Include="..\..\..\..\Assets\Fonts\*.spritefont">
<Link>%(FileName).spritefont</Link>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</WildCard>
</ItemGroup>
<ItemGroup>
<WildCard Include="..\..\..\..\Assets\images\spritesheet\iPad\*.png">
<Link>%(FileName).png</Link>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
<ProcessorParameters_PremultiplyAlpha>False</ProcessorParameters_PremultiplyAlpha>
</WildCard>
</ItemGroup>
<ItemGroup>
<WildCard Include="..\..\..\..\Assets\sounds\*.mp3">
<Link>Sounds\%(FileName).mp3</Link>
<Importer>Mp3Importer</Importer>
<Processor>SoundEffectProcessor</Processor>
</WildCard>
</ItemGroup>
<ItemGroup>
<WildCard Include="..\..\..\..\Assets\music\*.mp3">
<Link>Music\%(FileName).mp3</Link>
<Importer>Mp3Importer</Importer>
<Processor>SongProcessor</Processor>
</WildCard>
</ItemGroup>
<Target Name="BeforeBuild">
<CreateItem Include="@(WildCard)" AdditionalMetadata="Name=%(FileName)">
<Output TaskParameter="Include" ItemName="Compile" />
</CreateItem>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment