Question

Is there a way to get Teamcity to interact with the nuget session whilst performing a package restore.

The issue i have is that various files are in a conflicted state and it is prompting to over write, i.e. like this:

[update] File Conflict.
[update] File 'App_Start\NinjectWebCommon.cs' already exists in project 'MyProject'. Do you want to overwrite it?

Which in turn hangs the build waiting for a response to the prompt, this is obviously not a problem in VS, but i cant find an option in Teamcity to set a default response to prompts like this.

How do people handle this situation?

Was it helpful?

Solution

In response to the comment i was using the standard "Nuget Installer" build step, however i had not noticed the "Nuget Update" check box was ticked. Unchecking that has resolved my issue.

OTHER TIPS

If you actually want to run the NuGet Update step, you can provide the following command line switch in order to avoid hanging the build:

-NonInteractive
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top