Skip to content

Commit

Permalink
Adapt to package name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Nov 14, 2024
1 parent c3ae2bd commit e3bb766
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions Build/targets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6009,17 +6009,23 @@ module Targets =
let driveproj =
XDocument.Load "./Build/DriveApi.fsproj"

let dd =
toolPackages
|> Map.toSeq
|> Seq.map (fun (k, v) -> k.ToLowerInvariant(), v)
|> Map.ofSeq

let mutable fctarget =
toolPackages.Item "Fake.Core.Target"
dd.Item ("Fake.Core.Target".ToLowerInvariant())

let mutable fdcli =
toolPackages.Item "Fake.DotNet.Cli"
dd.Item ("Fake.DotNet.Cli".ToLowerInvariant())

let mutable unq =
toolPackages.Item "Unquote"
dd.Item ("Unquote".ToLowerInvariant())

let mutable sci =
toolPackages.Item "System.Collections.Immutable"
dd.Item ("System.Collections.Immutable".ToLowerInvariant())

// refine as required
driveproj.Descendants(XName.Get("PackageReference"))
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageVersion Include="FAKE.Core.Trace" Version="6.1.3" />
<PackageVersion Include="Fake.Core.Target" Version="6.1.3" />
<PackageVersion Include="Fake.dotNet.AssemblyInfoFile" Version="6.1.3" />
<PackageVersion Include="Fake.DotNet.Cli" Version="6.1.3" />
<PackageVersion Include="FAKE.DotNet.Cli" Version="6.1.3" />
<PackageVersion Include="Fake.dotNet.fxcop" Version="6.1.3" />
<PackageVersion Include="Fake.dotNet.msbuild" Version="6.1.3" />
<PackageVersion Include="Fake.DotNet.NuGet" Version="6.1.3" />
Expand Down

0 comments on commit e3bb766

Please sign in to comment.