You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
2.3 KiB

10 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMin" />
  4. <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinBundleTask" />
  5. <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestTask" />
  6. <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestCleanTask" />
  7. <PropertyGroup>
  8. <!-- if the project has a Content folder, we want that to be the root output; otherwise just dump everything relative to the project root -->
  9. <AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)=='' and Exists('$(ProjectDir)Content\')">$(ProjectDir)Content\</AjaxMinOutputFolder>
  10. <AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)==''">$(ProjectDir)</AjaxMinOutputFolder>
  11. <!-- default is to NOT treat warnings as errors -->
  12. <AjaxMinTreatWarningsAsErrors Condition="$(AjaxMinTreatWarningsAsErrors)==''">false</AjaxMinTreatWarningsAsErrors>
  13. </PropertyGroup>
  14. <ItemGroup>
  15. <AjaxMinManifests Include="**/*.ajaxmin"/>
  16. </ItemGroup>
  17. <!-- target to clean output for all ajaxmin manifest files in the project -->
  18. <Target Name="CleanAjaxMinManifests" AfterTargets="Clean" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).cleantrigger')">
  19. <Message Text="Cleaning AjaxMin Manifests" Importance="high" />
  20. <AjaxMinManifestCleanTask OutputFolder="$(AjaxMinOutputFolder)" Manifests="@(AjaxMinManifests)" />
  21. </Target>
  22. <!-- target to build all ajaxmin manifest files in the project -->
  23. <Target Name="BuildAjaxMinManifests" AfterTargets="Build" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).buildtrigger')">
  24. <Message Text="Processing AjaxMin Manifests" Importance="high" />
  25. <AjaxMinManifestTask ProjectDefaultSwitches="-define:$(DefineConstants) $(AjaxMinProjectDefaultSwitches)"
  26. Configuration="$(Configuration)"
  27. TreatWarningsAsErrors="$(AjaxMinTreatWarningsAsErrors)"
  28. InputFolder="$(ProjectDir)"
  29. OutputFolder="$(AjaxMinOutputFolder)"
  30. Manifests="@(AjaxMinManifests)" />
  31. </Target>
  32. </Project>