I'm following documentation on how to deploy my .NET Core application to IIS using MSDeploy. https://docs.microsoft.com/en-us/aspnet/core/publishing/iis-with-msdeploy
After creating a publish profile in Visual Studio, a powershell script is generated. The documentation tells me that I need to update the publish module version number from 1.0.1 to 1.0.2-beta2. I've been looking through these files that have been generated [app name]-publish.ps1 and publish-module.psm1, and I don't see where the publish module version is set.
My script seems to be different compared to the one shown on this part of the documentation. https://docs.microsoft.com/en-us/aspnet/core/publishing/web-publishing-vs
It doesn't define $publishModuleVersion ='1.0.2-beta2'
Here's my script. Did I do something wrong and generate the wrong script? Or do I need to set the publish module version somewhere else? Been stuck on this for a while now.
[cmdletbinding(SupportsShouldProcess=$true)] param($publishProperties=@{}, $packOutput, $pubProfilePath) # to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327 try{ if ($publishProperties['ProjectGuid'] -eq $null){$publishProperties['ProjectGuid'] = '3672962c-96ad-47ef-9871-d92851c6da2e' }$publishModulePath = Join-Path (Split-Path $MyInvocation.MyCommand.Path) 'publish-module.psm1' Import-Module $publishModulePath -DisableNameChecking -Force # call Publish-AspNet to perform the publish operation Publish-AspNet -publishProperties $publishProperties -packOutput $packOutput -pubProfilePath $pubProfilePath } catch{"An error occurred during publish.`n{0}" -f $_.Exception.Message | Write-Error }