Octopus plugin packs from wrong folder


We have a bunch of .net projects which I build and deploy to Octopus.
Just recently, one of my projects changed which files to be included in the package created by Octopack in the “Build a Visual Studio project or solution using MSBuild” build step. Before it copied all files within the build result folder, now it only copies the files inside the bin folder.

I have this cmd line arguments in the step setting

/p:Configuration=Release /p:RunOctoPack=true /p:OctoPackEnforceAddingFiles=true /p:OctoPackPackageVersion=${BUILD_TIMESTAMP}.${BUILD_NUMBER} /p:OctoPackProjectName=KA.Webb

If I run msbuild locally, it works as it should, if I change project to build in jenkins, it works as it should.

It feels like there is a relation to which .csproj file I try to build, not the build config or the actual code in the project.

Any idea, anyone?