Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

AutoMapper fails to install #341

Description

@ergodaveh

Just tried these Steps today:
To run the samples:
Clone this repo
At the repo's root directory (the one containing src, samples, etc.), run dotnet restore
*** the AutoMapper fails to install ***
Change directory to the sample you want to run (e.g., cd samples/angular/MusicStore)
etc...

the log entry:
log : Retrying 'FindPackagesByIdAsyncCore' for source 'https://go.microsoft.com/fwlink/?LinkID=230477/FindPackagesById()?id='AutoMapper''.
log : The content at 'https://go.microsoft.com/fwlink/?LinkID=230477/FindPackagesById()?id='AutoMapper'' is not valid XML.
log : For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

Cheers

Activity

  1. SteveSandersonMS commented on Sep 30, 2016

    @SteveSandersonMS
    Member

    I just cleared my package cache and tried dotnet restore for this, and it worked OK (AutoMapper was found and installed properly). Maybe there was a temporary network issue when you tried - I'd suggest trying again (and if necessary, clearing your dotnet package cache first - it's probably in your user directory under .nuget/packages).

    Closing as can't repro, but if you still think there's an issue, please let us know.

  2. ergodaveh commented on Sep 30, 2016

    @ergodaveh
    Author

    Thanks for looking into this issue. I have used your method of removing the cache using 'nuget locals all -clear' and attempt the 'dotnet restore' again without success. being generally more comfortable in VS. I have opened the project/solution within VS2015 and tried to build the solution. VS returned the same failure. Such that I tried the PM approach to add the latest resource available.. Tried another build and VS suggested Microsoft.Tpl.DataFlow was needed.. PM'd the latest into the solution and attempted another Solution Build. This time the error suggests the latest version of AutoMapper excludes the method Mapper.CreateMap<...etc). Afterwards (uninstalling the lastest and installing AutoMapper 4.2 and a Clean Solution) the Solution builds.
    Returning the 'dotnet restore' Step... again fails to complete.
    Cheers,

  3. SteveSandersonMS commented on Oct 5, 2016

    @SteveSandersonMS
    Member

    Sorry, I don't know why you're having this issue, but I've confirmed on a couple of other machines that the project is set up to build correctly. Maybe you have some custom NuGet feed or are running a special build of .NET. Beyond that, I'm afraid I'm not sure what the issue is. If you are keen to dig into this further, you might want try making a minimal repro project (see how much you can strip out of the samples/angular/MusicStore project while the error remains) and report it to NuGet.

  4. TylerJGabb commented on Jul 23, 2018

    @TylerJGabb

    I am having this issue with a brand new vanilla console project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions