Open dloukola opened 9 months ago
Hi @dloukola thanks for reporting! The documentation does not indicate that this command works with the projects input. I'm not sure if this may be identified as a bug.
I did notice that in the documentation. Is the intention of this task to publish all with no control of which project to publish at all?
Documentation clearly states a projects format in the example. https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/dotnet-core-cli-v2?view=azure-pipelines#publish-projects-to-specified-folder
Since this is just a wrapper around the 'dotnet publish' command and this can also anticipate a projects parameter, I'd suspect this to work. Trying with just running powershell commands in pipeline which does seem to work. Will continue with flow for the time being.
New issue checklist
Task name
DotNetCoreCLI@2
Task version
2
Issue Description
Issue: This task ALWAYS attempts to publish all executable projects in the solution, no matter what is specified in the "projects" argument. It runs them as separate commands per project.
Expected: Only the projects specified in the "projects" argument should be built and published.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-latest
Relevant log output
Full task logs with system.debug enabled
Repro steps