Search code examples
asp.net-coretfsbuild

Asp.Net Core Rest API (VS 2015 version) with Team Build?


I recently submitted an Asp.Net Core (VS2015 style) project to our build team for automated builds. They came back and said its not pulling down the nuget packages. They did install VS2015 Update 3, Visual Studio Tooling, .Net Core runtime. Is there something else I need to do for the project to work in Team Build?


Solution

  • First you need to make sure the .NET Core tools has been installed on your build agent. For on-premise TFS, add a "Command line" step before build step. In the Command line step, invoke dotnet restore command to restore the assemblies in your project. The $(Build.SourcesDirectory) presents the path:"c:\agent_work\1\s".

    enter image description here

    enter image description here