Open mrtank opened 3 years ago
We can also call paket update WebSharper* --filter
for an easier single command update, see https://fsprojects.github.io/Paket/paket-update.html
Yes. That's an option for non-pre. https://github.com/fsprojects/Paket/issues/278 I believe you must specify version if --pre
is given. If --pre
is given version info for each package have to be read from paket outdated --pre
, and issue update with those.
The gist of the problem is with --pre
on, that it's possible to have prerelease from different sources.
nuget Example >= 1.2.3 alpha // At least 1.2.3 including alpha versions.
nuget Example >= 2 beta rc // At least 2.0 including rc and beta versions.
nuget Example >= 3 rc // At least 3.0 including rc versions.
nuget Example >= 3 prerelease // At least 3.0 including all prerelease versions
Paket decided to rely on the version in the dependencies file, or update to specific version http://fsprojects.github.io/Paket/nuget-dependencies.html#PreReleases
From #1
That would mean
dotnet ws
tool can check the latest version from nuget feeds.Whenever a
dotnet ws
usage happens in a directory with a WebSharper project in it, a warning should be displayed with the new version number available. LikeDeciding if the current folder have a WebSharper project is the following: If
succeeds, and outputs a line
* WebSharper x -> y
, thanpaket update WebSharper.*
is issued. Where * is all the packages installed prefixed withWebSharper
If fails,
is checked for
WebSharper x y z
. If it existsdotnet add package WebSharper.*
is issued. Where * is all the packages installed prefixed withWebSharper
There would be a
--pre
flag fordotnet ws update
which would add--pre
topaket outdated
, add--version y
topaket update
wherey
would be read frompaket outdated
, add--include-prerelease
todotnet list package
, add--prerelease
todotnet add package
.