Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Core 3.0.0 Preview 3 #2389

Closed
vivmishra opened this issue Mar 6, 2019 · 2 comments
Closed

.NET Core 3.0.0 Preview 3 #2389

vivmishra opened this issue Mar 6, 2019 · 2 comments

Comments

@vivmishra
Copy link
Contributor

.NET Core 3.0.0 Preview 3

Release Notes
Download
Blog post

Please report any issues you find with 3.0.0 Preview 3, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:

@yilmazdurmaz
Copy link

for v3, "dotnet add package" does not respect the cache folders while offline, and halts the process after trying to connect a repo.

funny thing is out of 3, that repo does not even have the package I try to add while others have the cached version already.

open a command prompt and use the following commands to reproduce

mkdir online
cd online
dotnet new console
dotnet add package Microsoft.EntityFrameworkCore

after this the package and dependencies should be available in caches for offline use. but there is a problem with the source "dotnet-windowsdesktop" thus it is not cached.

info : Adding PackageReference for package 'Microsoft.EntityFrameworkCore' into project 'z:\Tools-new\online\offline\offline\offline.csproj'.
log  : Restoring packages for z:\Tools-new\online\offline\offline\offline.csproj...
info :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore/index.json
info :   CACHE https://dotnetmyget.blob.core.windows.net/artifacts/aspnetcore-dev/nuget/v3/flatcontainer/microsoft.entityframeworkcore/index.json
info :   CACHE https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/microsoft.entityframeworkcore/index.json
info :   GET https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json
info :   NotFound https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json 2299ms
info : Package 'Microsoft.EntityFrameworkCore' is compatible with all the specified frameworks in project 'z:\Tools-new\online\offline\offline\offline.csproj'.
info : PackageReference for package 'Microsoft.EntityFrameworkCore' version '2.2.3' added to file 'z:\Tools-new\online\offline\offline\offline.csproj'.
info : Committing restore...
info : Writing lock file to disk. Path: z:\Tools-new\online\offline\offline\obj\project.assets.json
log  : Restore completed in 3.35 sec for z:\Tools-new\online\offline\offline\offline.csproj.

now disconnect the internet and continue

cd ..
mkdir offline
cd offline
dotnet new console
dotnet add package Microsoft.EntityFrameworkCore

and get this error. though others repos have the cached package files and package added from cache while online as can be seen in the previous step, just because one of repos cant be reached and other caches are discarded to continue adding the package, even though the package is not available from this repo

info : Adding PackageReference for package 'Microsoft.EntityFrameworkCore' into project 'z:\Tools-new\online\offline\offline\offline.csproj'.
log  : Restoring packages for z:\Tools-new\online\offline\offline\offline.csproj...
info :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore/index.json
info :   CACHE https://dotnetmyget.blob.core.windows.net/artifacts/aspnetcore-dev/nuget/v3/flatcontainer/microsoft.entityframeworkcore/index.json
info :   CACHE https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/microsoft.entityframeworkcore/index.json
info :   GET https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json
log  : Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json'.
log  : No such host is known.
info :   GET https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json
log  : Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json'.
log  : No such host is known.
info :   GET https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json
error: Failed to retrieve information about 'Microsoft.EntityFrameworkCore' from remote source 'https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/flatcontainer/microsoft.entityframeworkcore/index.json'.
error:   No such host is known.

@karelz
Copy link
Member

karelz commented Apr 19, 2019

Superseeded by Preview 4 - see #2603

@karelz karelz closed this as completed Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants