-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add --prerelease
option to dotnet add package
#4699
Comments
CC : @mishra14 |
You can do log -
This will add -
The |
@mishra14 I'm trying to
Adding Using version |
@jacek-jaskolski : We initially had a problem about placing Please try the latest dotnet cli and it should be fine. |
At the very least the error message needs to change. This is the current experience:
The message implies that the package isn't compatible, not that it cannot be found. FWIW I'm not a fan of the Ideally, this is how I would like the UX to be:
|
@terrajobst is right. There are actually two things here. Bug: the error message is WRONG. Feature: add support for grabbing prerelease. How can we at least fix the error message? |
@richlander and I hit this last night as well. The experience must get better. I really like @terrajobst's suggestion of informing the user that no packages were found; I'd go a step further and only suggest --pre if pre-release packages exist. Otherwise just inform the user the package doesn't exist. This sort of output is just frustrating: error: Unable to resolve 'thiscantbeapackage' for '.NETCoreApp,Version=v2.0'.
error: Package 'thiscantbeapackage' is incompatible with 'all' frameworks in project 'whatever.csproj'. |
We are doing some error/warning rework in nuget restore in our 4.3 release. If things go well, internal consumers of restore (like dotnet add package) could have better ability to understand those errors, beyond just passing along the log output. |
blocked by lack of 4.4.- support in versions right now. |
What is the status of this? It's been several months, and this does not seem to have been added yet. I need this as well. |
@rrelyea, what are your thoughts on making the cut for an upcoming release? It's probably too late for 2.1, but it's a high hitter in the UX. What's the next train this could catch? |
@terrajobst I have moved it to Priority 0 to reflect the request. |
Thanks! |
@mishra14 @terrajobst this issue is still open, has it not been resolved yet? |
still not working as of dotnet 3.1.4 I can confirm this doesnt work even with the "-v 1.1.1-pre1.1" argument |
The fix for this bug has not been released yet. 3.1.400 matches 5.7 of NuGet, but this was fixed in 5.0.100 of the SDK, matching 5.8 of NuGet and 16.8 of Visual Studio. |
--prerelease
option to dotnet add package
From @yooakim at https://github.com/dotnet/cli/issues/5752
I'm not sure this is a bug but it would be nice if one could add NuGet packages with the
-pre
version as used by NuGet.Steps to reproduce
dotnet add package Swashbuckle --version pre
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: