Folks,
I'm using the Visual Studio Build task in TFS 2018 to build multiple .NET Core 2.0 web applications.
The solution parameter is: **\WebApp.*.sln
Where each solution is something like WebApp.Prj1.sln, WebApp.Prj2.sln, etc.
The MSBuild arguments are: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=false /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactstagingdirectory)\WebApp.zip"
What I would like is to create the webapp.zip file specific to the solution I'm building. In other words, something like: /p:DesktopBuildPackageLocation="$(build.artifactstagingdirectory)\$(build.projectname).zip"
I don't seem to be able to find a built-in variable that allows me to access the solution or project name getting built.
Is this possible? If not, can someone post the equivalent powershell script that emulates the Visual Studio Build task so I can manually create the zipfile with the project name?
Thanks.