You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wtih a F# project with a fsproj file opening with <Project Sdk="Microsoft.NET.Sdk"> and targeting netcoreapp3.1, running "dotnet outdated -u" gives this error:
» RestApi
[.NETCoreApp,Version=v3.1]
FSharp.Core 5.0.0 -> 5.0.1
...
Upgrading package FSharp.Core...
An error occurred while upgrading RestApi
Thanks for the report. FSharp.Core is an implicit reference (see here), I'm not sure what we should be doing with implicit references, because as an F# user there are times where I've wanted to upgrade the version of FSharp.Core from what is referenced implicitly. I'll have a think.
If you change Include to Update in the PackageReference element that would do it, otherwise MSBuild will just ignore your package as assume it to be a duplicate.
Activity
slang25 commentedon Mar 4, 2021
Thanks for the report.
FSharp.Coreis an implicit reference (see here), I'm not sure what we should be doing with implicit references, because as an F# user there are times where I've wanted to upgrade the version ofFSharp.Corefrom what is referenced implicitly. I'll have a think.breyed commentedon Mar 4, 2021
I tried adding an explicit reference to FSharp.Core 5.0.1 and it didn't make a difference.
slang25 commentedon Mar 4, 2021
If you change
IncludetoUpdatein thePackageReferenceelement that would do it, otherwise MSBuild will just ignore your package as assume it to be a duplicate.breyed commentedon Mar 4, 2021
That worked. Should dotnet-outdated insert the
Updatepackage references instead of reporting an error?slang25 commentedon Mar 5, 2021
We call the dotnet CLI under the hood and do a
dotnet add, however for implicit packages I think we should report them, but not upgrade them IMO.coderpatros commentedon Mar 5, 2021
@slang25 I think that would be a good approach too.
Surface package-upgrade stdout so failures are diagnosable
Surface package-upgrade stdout so failures are diagnosable
Surface package-upgrade stdout so failures are diagnosable (#790)