AutoMapper 5.1.1 Package Not Found When Nuget Restore in Hosted Build Agent in Visual Studio Team Services

A really strange problem with AutoMapper recovery in a hosted build agent in Team Services (formerly VSO). It just fails with the warning "Unable to find AutoMapper version 5.1.1."

We have individual and private nuget repository, so we had to add nuget.config to list all the sources, but for some reason AutoMapper was not found! It works fine in Visual Studio even after deleting a folder with folders.

To check if this is a custom parameter with nuget sources, I created an assembly for another solution that happily goes through recovery because there is no link to AutoMapper there.

I cannot conclude that it is AutoMapper because it works with the IDE, but I cannot say that nuget.config is a problem either because the second solution works (has a different problem

+4
source share
3 answers

We ran into this problem, and here's how:

The problem started when we added part of the nuget configuration to the build process, since we have our own nuget server, as well as for internal packages.

After trying to use ExpressMapper and working with it for some components, we found that AutoMapper is a dependent package for some of the packages we use, so we needed to find a way to use automapper.

automapper, , nuget, . , -.

0

, VSO NuGet. nuget.exe - NuGet nuget.org.

+3

In VSO, you can select the version of Nuget in the extended section of the build phase of the Nuget installer. I just installed my "3.5.0 - build 1938 (rc2)" and nuget was able to find the AutoMapper package.

+2
source

Source: https://habr.com/ru/post/1654863/


All Articles