We have added our .nuspec file for the same name as our .csproj in the same folder. It does copy over to the folders within the build, but then it seems like the final Added File, is a Octopack generated file not the file we have in our TFS source control.
_CopyOutOfDateSourceItemsToOutputDirectoryAlways:
Copying file from “D:\Sources\etc\src\xxxx.Note\xxxx.SvcHost.Note\App.OctoDeploy.transform” to “D:\Dev\Binaries\xxxx.SvcHost.Note\App.OctoDeploy.transform”.
Copying file from “D:\Sources\Deploy\ConnectionStrings.SaaSDEV.transform” to “D:\Binaries\xxxx.SvcHost.Note\ConnectionStrings.SaaSDEV.transform”.
Copying file from “D:\Sources\etc\src\xxxx.Note\xxxx.SvcHost.Note\xxxx.SvcHost.Note.nuspec” to “D:\Binaries\xxxx.SvcHost.Note\xxxx.SvcHost.Note.nuspec”.
_CopyAppConfigFile:
Copying file from “app.config” to “D:\Binaries\xxxx.SvcHost.Note\xxxx.SvcHost.Note.exe.config”.
CopyFilesToOutputDirectory:
Copying file from “obj\Release\xxxx.SvcHost.Note.exe” to “D:\Binaries\xxxx.SvcHost.Note\xxxx.SvcHost.Note.exe”.
xxxx.SvcHost.Note -> D:\Binaries\xxxx.SvcHost.Note\xxxx.SvcHost.Note.exe
Copying file from “obj\Release\xxxx.SvcHost.Note.pdb” to “D:\Binaries\xxxx.SvcHost.Note\xxxx.SvcHost.Note.pdb”.
OctoPack:
OctoPack: Get version info from assembly: D:\Binaries\xxxx.SvcHost.Note\xxxx.SvcHost.Note.exe
Using package version: 5.0.2125.0
OctoPack: Written files: 33
OctoPack: Copy file: D:\Sources\etc\src\xxxx.Note\xxxx.SvcHost.Note\xxxx.SvcHost.Note.nuspec
OctoPack: Packaging a console or Window Service application (no Web.config detected)
OctoPack: Add binary files
OctoPack: Added file: App.OctoDeploy.transform
OctoPack: Added file: ConnectionStrings.SaaSDEV.transform
OctoPack: Added file: xxxx.SvcHost.Note.nuspec
OctoPack: NuGet Version: 3.5.0.38733 (Custom build for OctoPack. See http://g.octopushq.com/VersioningInOctopusDeploy)
OctoPack: Attempting to build package from ‘xxxx.SvcHost.Note.nuspec’.
OctoPack: Successfully created package ‘D:\Sources\etc\src\xxxx.Note\xxxx.SvcHost.Note\obj\octopacked\xxxx.SvcHost.Note.5.0.2125.0.nupkg’.
OctoPack: Copy file: D:\Sources\etc\src\xxxx.Note\xxxx.SvcHost.Note\obj\octopacked\xxxx.SvcHost.Note.5.0.2125.0.nupkg
OctoPack: OctoPack successful