-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Preview2 packages missing? #9162
Comments
According to readme, preview2 is the latest and i took the tarball link from there: cc @Petermarcu |
My guess is that its trying to resolve the packages from Nuget.org. In order to resolve packages that are part of the dev feeds, you need to make sure you have the dotnet-core myget feed in a nuget.config: https://dotnet.myget.org/F/dotnet-core/api/v3/index.json |
See this nuget config on this line: https://github.com/Petermarcu/dotnet-microservice/blob/master/NuGet.config#L6 |
Could that entry go in global NuGet.config, as part of the |
We had done that in the past and could consider again. @livarcocc thoughts? I recall we had some challenges with making sure that nuget.config never got into a release build and it was just safer to keep them the same. @kasper3 you could open an issue specifically about that if you'd like. |
The CLI does not modify the global NuGet.Config file. In the past, we had We have an issue to update our nightly build instructions to include the step to add necessary feeds. I would like to go with that before trying anything else. We will use https://github.com/dotnet/cli/issues/8291 to track improving those instructions. |
The current user experience is that <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
</packageSources>
</configuration> |
Yes, for a nightly build I believe it is fine to require a NuGet.Config. Also note that the NuGet.Config does not need to be in the directory above, you can place it right next tot he project you just created, which is what we used to do. |
In Alpine 3.7, i tried 3.6 tarball:
After that when i run
dotnet new console -n testconsole
, i getThe text was updated successfully, but these errors were encountered: