I don’t suppose you could attach a copy of your .csproj file? It looks like you have some referenced assemblies that aren’t set to copy local, and for some reason we’re trying to use an absolute path to them.
I’m seeing the same issue. However limited down to just the System.Net.Http.Formatting reference. My solution contains 36 projects, 4 of which reference System.Net.Http.Formatting. Each of these are set to ‘Local Copy’=true and each is pathed to a NuGet packages folder. I’m using OctoPack v3.0.20.
I’ve proven that the OctoPack-built nuspec file contains the following:
Is there any dependency tree walking done by OctoPack? Should I be focusing on project references that reference System.Net.Http.Formatting? Any other thoughts?
I read through the nuspec file and noticed that the src and target attributes are the same. I don’t see what conclusion I should draw from that information.
To supply more information and keep this thread alive, we’re also running VS12 and targeting .NET v4.5, too. The project’s output path is not the traditional bin\ folder but a subfolder of bin. (i.e. bin\FeatureRelease).
Additionally, OctoPack works fine for two other projects in the same solution but gives this failure on the ASP.NET project (that references other assembly projects in the solution). The problematic references failing in the ASP.NET project are to be found in other projects. To me it appears to be something related to the ASP.NET configuration.
Thanks for sending me all this information; I’m just not having any luck reproducing this one.
How are you compiling this solution? I saw that you were using TeamCity John. What does the runner look like? Do you pass any parameters to MSBuild? Are you doing anything special, like performing a web application “publish”? Building in release mode? Debug mode? Setting OutDir? Do you pass anything to OutDir? Is Visual Studio installed on your build server?
With OctoPack installed, can you go to your solution directory, and simply run (on your workstation and on the build server):
Answering your questions you sent to John from my perspective. Yes, one of the actions is to publish the web application via MSDeploy. We’re building a custom ‘FeatureDevelopment’ configuration. And the output directory is bin/FeatureDevelopment/.
Just to add some information based on my own experiences; the MSBuild solution files produced in TeamCity seem to have problems with file copying that don’t appear when building with Visual Studio directly.
Can anyone on the thread confirm whether the issue appears when building from Visual Studio on a dev machine?