Skip to content

Instantly share code, notes, and snippets.

View Salvodif's full-sized avatar

BlackPraedicator Salvodif

  • Rome
  • 05:07 (UTC +02:00)
View GitHub Profile
<?xml version="1.0" encoding="utf-8" ?>
<AzureConf>
<Blob>
<Container FileExt="css" Name="css" />
<Container FileExt="js" Name="scripts" />
</Blob>
<AzureAccountInfo>
<Name>your blob account name</Name>
<Key>your blob account key</Key>
</AzureAccountInfo>
"$(MSBuildBinPath)\msbuild.exe" "$(ProjectDir)yui\MSBuild.xml"
powershell.exe -Command "& {Set-ExecutionPolicy Unrestricted}"
powershell.exe -NoLogo -NonInteractive -File "$(ProjectDir)UploadBundleOnAzure.ps1" -ProjectDir "$(ProjectDir)"
param([string]$ProjectDir)
# for some reason we have a " to remove at the end of string
$ProjectDir = $ProjectDir.Substring(0,$ProjectDir.Length-1)
$assetsDir = [string]::Format('{0}\{1}', $ProjectDir, 'Assets')
$myCss = Get-ChildItem "$assetsDir\Styles" -Filter "*.css" | % -process { $_.FullName }
$myJs = Get-ChildItem "$assetsDir\Scripts" -Filter "*.js" | % -process { $_.FullName }
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/MsBuild/2003">
<UsingTask TaskName="CssCompressorTask" AssemblyFile="..\..\..\..\..\Reference Assemblies\Yahoo.Yui.Compressor.Build.MsBuild.dll" />
<UsingTask TaskName="JavaScriptCompressorTask" AssemblyFile="..\..\..\..\..\Reference Assemblies\Yahoo.Yui.Compressor.Build.MsBuild.dll" />
<PropertyGroup>
<CssMinOutputFile>..\Assets\Styles\Stylesheet1.min.css</CssMinOutputFile>
<JavaScriptMinOutputFile>..\Assets\Scripts\Javascript1.min.js</JavaScriptMinOutputFile>
</PropertyGroup>