Calidreaminn
Calidreaminn

Reputation: 9

Team Foundation Server Build errors....NuGet?

Im having build errors after building my Visual Studio Core repository from Team Foundation Server. My build order is Get Sources -> NuGet Restore, Build Solution, Publish Artifact

NuGet restore points to my NuGet.config file.

Looking at the error, it seems to me that my NuGet files are not being compiled. My Nuget files are pointing to a location in my file system. I can compile and run my program on VS but i cant successfully build using TFS. Example errors:

project.assets.json not found, run a nuget restore to generate this file. - After looking, I found the file in the same location it said not found?

The type or name space "System" could not be found - Im getting this error for all 8 NuGet packages????

Upvotes: 0

Views: 127

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 59045

The NuGet.config can't be pointing to your file system if you expect the restore to work on a machine other than yours. It has to be pointing to a location that the build server can access.

I'd recommend setting up a Package Management feed containing your packages.

Upvotes: 0

Related Questions