Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Js Merging From Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="..\..\Libs\AjaxMinTask.dll" TaskName="AjaxMin" />
<UsingTask AssemblyFile="..\..\Libs\AjaxMinTask.dll" TaskName="AjaxMinBundleTask" />
<UsingTask AssemblyFile="..\..\Libs\AjaxMinTask.dll" TaskName="AjaxMinManifestTask" />
<UsingTask AssemblyFile="..\..\Libs\AjaxMinTask.dll" TaskName="AjaxMinManifestCleanTask" />
<ItemGroup>
<AjaxMinManifests Include="**/*.ajaxmin.xml" />
</ItemGroup>
<!-- target to clean output for all ajaxmin manifest files in the project -->
<Target Name="CleanAjaxMinManifests" AfterTargets="Clean" Inputs="@AjaxMinManifests"
Outputs="@(AjaxMinManifests->'%(FullPath).cleantrigger')">
<Message Text="Cleaning AjaxMin Manifests" Importance="high" />
<!-- change folder name to be same as CRM project folder location -->
<AjaxMinManifestCleanTask
OutputFolder="$(SolutionDir)result-directory-folder"
Manifests="@(AjaxMinManifests)" />
</Target>
<!-- target to build all ajaxmin manifest files in the project -->
<Target Name="BuildAjaxMinManifests" AfterTargets="Build" Inputs="@AjaxMinManifests"
Outputs="@(AjaxMinManifests->'%(FullPath).buildtrigger')">
<Message Text="Processing AjaxMin Manifests" Importance="high" />
<!-- change folder name to be same as CRM project folder location -->
<AjaxMinManifestTask ProjectDefaultSwitches="-define:$(DefineConstants)
$(AjaxMinProjectDefaultSwitches)"
Configuration="$(Configuration)"
TreatWarningsAsErrors="false"
OutputFolder="$(SolutionDir)result-directory-folder"
Manifests="@(AjaxMinManifests)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment