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

AutoMapper fails to install #341

Closed
ergodaveh opened this issue Sep 29, 2016 · 4 comments
Closed

AutoMapper fails to install #341

ergodaveh opened this issue Sep 29, 2016 · 4 comments

Comments

@ergodaveh
Copy link

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

@SteveSandersonMS
Copy link
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.

@ergodaveh
Copy link
Author

ergodaveh commented Sep 30, 2016

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,

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented Oct 5, 2016

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.

@TylerJGabb
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants