My Solution looks like below,
yaml file for CI,
ASP.NET Core
Build and test ASP.NET Core projects targeting .NET Core.
Add steps that run tests, create a NuGet package, deploy, and more:
trigger:
pool: 'Default'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(solution)'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: '**/TestAzureFunc.csproj'
arguments: --configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Runing Unit Tests
inputs:
command: test
projects: '**/Tests.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: false
arguments: '--configuration $(BuildConfiguration) --self-contained false --output $(build.artifactstagingdirectory)'
zipAfterPublish: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: 'drop'
Artifacts Folder looks like below for the above YAML file
It supposes to generate the files like below ( the below files I published from the visual studio)
I don't know what I'm missing in the pipe it generating some extra files, Could someone help with this, please?