Project references and Nuget packages within them
I am trying to build a Visual Studio solution in TeamCity.
Project A has 2 nuget packages installed. Project A builds fine.
Project B references project A but has no nuget packages installed. Project B inherits some classes in Project A which in turn inherit from classes in the nuget packages.
Project B wont build because it says it has no references to the classes in the nuget package!?
Should I be installing the nuget packages in both projects despite Project B not using them directly? These projects work fine outside of TeamCity
Please sign in to leave a comment.
Hello!
Please clarify your case: are project A and B in the same solution? Which version of TeamCity and Visual Studio are you using?
Yes same solution... vs2013, TC10 I think.
I only downloaded it last week so latest version of team city
Hello,
Sorry for the delay, have not managed to reproduce the issue yet.
Could you please try to repeat your msbuild commands from build log in the command prompt the same machine as the TeamCity agent and under the same user that the agent is running?