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

Yet another SdkAssemblyResolver fix #2835

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/app/Fake.Runtime/SdkAssemblyResolver.fs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,22 @@ type SdkAssemblyResolver(logLevel: Trace.VerboseLevel) =

match net60releases with
| None -> []
| Some versions -> versions |> List.filter sdkRelease
| Some versions ->
match versions |> List.filter sdkRelease with
| [] ->

Trace.traceFAKE $"No exact match of product releases {version.ToString()} found."

match versions |> List.filter (fun release -> release.Version.Major = version.Major) with
| [] ->
Trace.traceFAKE
$"No product release found for {version.ToString()}. Maybe a pre-release? Returning all the versions."

versions
| majorMatch ->
Trace.traceFAKE $".NET {version.Major} product releases returned."
majorMatch
| foundMatch -> foundMatch

member this.GetProductReleaseForSdk(version: ReleaseVersion) =
this.GetProductReleasesForSdk version |> List.tryHead
Expand Down
Loading