If I create an Azure package via Visual Studio then it works fine and runs on Azure. If I run the following cmd then the .cspkg that is created is 8,032KB instead of 14,785KB that is created via Visual Studio.
The command line generated .cspkg should be larger than via Visual Studio as the afterbuild event creates additional css / javascript files.
I want to run it via the command line as when I deploy the project locally it compresses/minifies in the afterbuild event and I cannot work out how to make the Azure Package be created after that process so I thought I would do it this way instead.
cspack.exe C:\blah\Azure\ServiceDefinition.csdef
/role:Project.Web;C:\blah\Deploy
/sites:Project.Web;Web;C:\blah\Deploy
/rolePropertiesFile:Project.Web;C:\blah\AzureRoleProperties.txt
/out:C:\Package.cspkg
The ServiceDefinition has:
<Site name="Web" physicalDirectory="..\Project.Web">
My project only has 1 role so I don't understand why via Visual Studio the filesize is almost double, I also can't add .zip to the .cspkg and view the files of my cmd line generated .cspkg.