Oh great powershell gods, please show this heathen the light!
I have been tasked with creating a 1 click publish-our-solution-to-the-cloud powershell script. I have, however, never used PS in my life. I have therefore been doing quite a bit of Googling and found a good bit of information however where I want to start I'm having a little difficulty finding something I can wrap my head around.
I keep running across pre/post build scripts, VS management console, nuget package management or any other number of seemingly unrelated info. These are not what I'm looking for.
Either by example here or linking to a good tutorial to get me started. My first baby step is to get VS to package the solution for release. Do the below action via PS.
I thought this would be the easiest to find info on... I have seen some info on MSBuild which I'm looking into now as I hopefully get an answer here.
EDIT: My working PS Script
$msbuild = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe" # Reference to the MSBuild.exe for .NET 4.0
$path = "C:\myProj\" # Path to the project you want to publish to Azure
# Clean the solution
& $msbuild ($path + "Source\pathToYour\AzureMyProj.ccproj") /target:clean /p:Configuration=Release
# Package the solution
& $msbuild ($path + "Source\pathToYour\AzureMyProj.ccproj") /target:publish /p:Configuration=Release