c# - Build fails in teamcity for Nuget packages -


i added solution via nuget autoumapper , nunit packages , work great , project compiles in computer.

when declared build server build solution got messages:

[msbuild] automapper\automapperspike.csproj: build default targets (1s) [10:35:50][automapper\automapperspike.csproj] resolveassemblyreferences [10:35:50][resolveassemblyreferences] resolveassemblyreference [10:35:50][resolveassemblyreference] primary reference "automapper". [10:35:50][resolveassemblyreference] c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets(1360, 9): warning msb3245: not resolve reference. not locate assembly "automapper". check make sure assembly exists on disk. if reference required code, may compilation errors. [10:35:50][resolveassemblyreference]         searchpath "{hintpathfromitem}". [10:35:50][resolveassemblyreference]         considered "..\packages\automapper.2.2.1\lib\net40\automapper.dll", didn't exist. 

does know how solve problem?

another thing noticed creates artificts in build server packages folder. thing can`t build project in build server.

in visual studio environment, there’s option in ui sets value on user profile never have remember again. on build server, though, there’s no such option. instead, you have set environment variable “enablenugetpackagerestore” “true” part of build.

i recommend against trying set environment variable inside build scripts or .csproj files. here’s blog article why happened , set on dev machine/build server.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -