The subject may not be totally clear.
What I have is 2 projects to octopack…a Console and Windows Service. I added the OctoPack nuget package to each project, added the nuspec file named after the project. I also added the Import targets into the .csproj files as that did not happen as part of the nuget package install.
When I flip to Release mode and build, Octopack is trying to run against one of the referenced class libraries that is referenced by another project the Console and Windows Service packages reference. This breaks the build as Octopack is expected a nuspec file for this class library. If I add it, everything is fine, but if not, the the build does not work.
Why would Octopack try and run against this class library project when I have not installed Octopack nuget into this DLL project?
I found the issue. Apparently, the Import for the .csproj file was created in the class library project vs. the two I installed OctoPack into using NuGet. I removed:
…from the class library and properly added it to both the Console and Windows Service .csproj file and everything is fine now!
I am assuming this happened because the class library was the startup project in the solution when OctoPack was first added to the Console project.