Within your build definition, I recommend adding a Copy Files
step that will copy your the build artifacts from your msbuild
results to the Build’s Artifact Staging Directory before you run the Publish Artifact
step.
- Source Folder:
$(Build.SourcesDirectory)
- Contents:
**\bin\$(BuildConfiguration)\**
- Target Folder:
$(Build.ArtifactStagingDirectory)
I am assuming that the $(BuildConfiguration)
variable is custom to your definition and is probably Debug
or Release
. I am not sure what exactly the Run dotnet step does, but this build definition I setup published my build artifacts correctly. The Publish Build Artifacts step I’m running has the same steps as yours, except the only control option enabled is Enabled
.
I am also running on TFS 2015 update 2.