What does the DeployIisAppPath
MSBuild property do?
The reason I'm asking is that I'm working with a build definition in Azure DevOps which uses it. It's a yaml definition which builds an ASP.NET Core project, and it contains the following task:
- task: VSBuild@1
displayName: Run MSBuild
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\ProjectName-dev.zip" /p:DeployIisAppPath="ProjectName Dev" /p:EnvironmentName=QA'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
I've cloned this existing pipeline to create a separate build, but I don't know what /p:DeployIisAppPath="ProjectName Dev"
does so I don't know if/how I should change it. I can't see anything in IIS which matches ProjectName Dev
(it's not the website name or anything like that) so I'm wondering if it's unused in my scenario. Is the DeployIisAppPath
property intended for use in a specific situation?
For clarity, I'm not looking for a solution to a specific problem, I'm looking for an explanation of the property so I can understand what the existing pipeline is doing. I have read every stack overflow question which includes the word DeployIisAppPath
, read the microsoft documentation for both this property and properties in general, and read several blog posts. Most stuff I've seen mentions the property in examples, but gives zero explanation of what it does. The nearest I've seen to an explanation is examples where the value is set to the name of the website in IIS, but this is not the case for the existing pipeline I'm using, which is working fine.
What does MSBuild do with the DeployIisAppPath
property?