When scaffolding a PowerShell deploy script for an ASP.NET core project, a reference to DEPLOYMENT_TEMP is using batch command syntax instead of PowerShell syntax here:
dotnet publish "$DEPLOYMENT_SOURCE\{DotnetpublishArguments}" --output "%DEPLOYMENT_TEMP%" --configuration Release
should be
dotnet publish "$DEPLOYMENT_SOURCE\{DotnetpublishArguments}" --output $DEPLOYMENT_TEMP --configuration Release
When scaffolding a PowerShell deploy script for an ASP.NET core project, a reference to
DEPLOYMENT_TEMP
is using batch command syntax instead of PowerShell syntax here:dotnet publish "$DEPLOYMENT_SOURCE\{DotnetpublishArguments}" --output "%DEPLOYMENT_TEMP%" --configuration Release
should bedotnet publish "$DEPLOYMENT_SOURCE\{DotnetpublishArguments}" --output $DEPLOYMENT_TEMP --configuration Release