I use ASP.NET core , and i am building a pipeline in Azure DevOps. The build is successful. but in the release error says:
[error]Error: No package found with specified pattern: D:\a\r1\a***.zip
I have tried to add these in build pipeline:
- task: PublishBuildArtifacts@1
But got this warning there:
[warning]Directory '/home/vsts/work/1/a' is empty. Nothing will be added to build artifact 'drop'.
My Build yaml looks this way:
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
variables:
buildConfiguration: 'Release'
steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: PublishBuildArtifacts@1