efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Git Clone - Build Initialize fails

Open michael-jenkinson opened this issue 11 years ago • 12 comments

When cloning the repository, build initialize fails during package restore.

Unable to locate System.Reflection.Primitives >= 4.0.0

michael-jenkinson avatar Jul 13 '15 05:07 michael-jenkinson

Same here

ilmax avatar Jul 13 '15 11:07 ilmax

Works on my PC, what are your machine package sources? %APPDATA%\NuGet\NuGet.Config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<activePackageSource>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
</activePackageSource>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
<add key="NuGet" value="https://www.nuget.org/api/v2/" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="xUnit nightly" value="https://www.myget.org/F/xunit/api/v2/" />
</packageSources>
</configuration>

ErikEJ avatar Jul 13 '15 11:07 ErikEJ

@ErikEJ this is mine nuget.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="AspNet vNext" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
</packageSources>
<activePackageSource>
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</activePackageSource>
</configuration>

ilmax avatar Jul 13 '15 12:07 ilmax

You need to indent :smile:

ErikEJ avatar Jul 13 '15 12:07 ErikEJ

Best I can do for now :) can you point me to indent docs?

ilmax avatar Jul 13 '15 12:07 ilmax

Indent: Four Spaces in front of each line - your NuGet.config looks fine, maybe some intermittent errors on MyGet?

ErikEJ avatar Jul 13 '15 12:07 ErikEJ

I've already tried multiple (4) times with no luck. Where System.Reflection.Primitives does come from? Looks like it isn't a corefx package

ilmax avatar Jul 13 '15 12:07 ilmax

MyGet: https://www.myget.org/gallery/aspnetvnext .. strange....

ErikEJ avatar Jul 13 '15 13:07 ErikEJ

This is my nuget.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageRestore>
    <add key="enabled" value="True" />
    <add key="automatic" value="True" />
  </packageRestore>
  <packageSources>
    <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
    <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="vNext nightly builds" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
    <add key="vNext milestone builds" value="https://www.myget.org/F/aspnetmaster/api/v2/" />
  </packageSources>
  <disabledPackageSources>
    <add key="api.nuget.org" value="true" />
    <add key="vNext milestone builds" value="true" />
  </disabledPackageSources>
  <activePackageSource>
    <add key="vNext nightly builds" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
  </activePackageSource>
</configuration>

michael-jenkinson avatar Jul 13 '15 14:07 michael-jenkinson

We had a few issues yesterday with the .NET Core packages. Try deleting %USERPROFILE%\.dnx\packages and %LOCALAPPDATA%\dnu then try again.

bricelam avatar Jul 14 '15 18:07 bricelam

I just tried again after deleting those 2 folders, works great now, thanks!

michael-jenkinson avatar Jul 14 '15 20:07 michael-jenkinson

Yup - worked for me too

Jetski5822 avatar Jul 21 '15 19:07 Jetski5822