

p:PackageLocation="$(build.artifactstagingdirectory)\\" This is what I use in Command line parameter in the step: /p:Configuration=Debug (EnsureNuGetPackageBuildImports target) -> "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2\WebApplication2.csproj" (default target) (3) -> "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2.sln" (default target) (2) ->

"R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\" (TeamCity_Generated_Build target) (1) -> Done Building Project "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\" (TeamCity_Generated_Build target(s)) - FAILED.

Done Building Project "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2.sln" (default targets) - FAILED. Done Building Project "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2\WebApplication2.csproj" (default targets) - FAILED. Use NuGet Package Restore to download them. R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2\WebApplication2.csproj(282,5): error : This project references NuGet package(s) that are missing on this computer. Project "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2.sln" (2) is building "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2\WebApplication2.csproj" (3) on node 1 (default targets). Project "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\" (1) is building "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2.sln" (2) on node 1 (default targets). Project "R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\" on node 1 (TeamCity_Generated_Build target(s)). working dir = 'R:\teamcity\buildAgent\work\5cfc9181ba33f9ec' 'C:\Windows\Microsoft.NET\Framework\v9\MSBuild.exe' R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\' It is recommended to define System Property on Build Parameters instead. MSBuild command line parameters contain "/property:" or "/p:". R:\teamcity\buildAgent\work\5cfc9181ba33f9ec\WebApplication2\WebApplication2.csproj(282, 5): This project references NuGet package(s) that are missing on this computer. WebApplication2\WebApplication2.csproj: Build default targets Building solution configuration "Debug|Any CPU".

WebApplication2.sln: Build default targets \packages\.1.0.0\build\."īelow is the step process log: : Build target: TeamCity_Generated_Build "This project references NuGet package(s) that are missing on this computer. My Build and Deploy step in TeamCity is not successfully executed.
