Skip to content

Commit 5c5d222

Browse files
committed
Refactor package references in sample15-nuget-analyzers.fsproj to streamline asset management
1 parent 1b2159d commit 5c5d222

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

test/Ionide.ProjInfo.Tests/Tests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,12 +2387,12 @@ let sample15NugetAnalyzers toolsPath loaderType workspaceFactory =
23872387
Expect.isSome
23882388
(analyzerDlls
23892389
|> List.tryFind (fun a -> a.PropertyName = "PkgG-Research_FSharp_Analyzers"))
2390-
"Should have found the PkgG-Research_FSharp_Analyzers key in the analyzers map"
2390+
"Should have found the PkgG-Research_FSharp_Analyzers key in the analyzers list"
23912391

23922392
Expect.isSome
23932393
(analyzerDlls
23942394
|> List.tryFind (fun a -> a.PropertyName = "PkgIonide_Analyzers"))
2395-
"Should have found the PkgIonide_Analyzers key in the analyzers map"
2395+
"Should have found the PkgIonide_Analyzers key in the analyzers list"
23962396

23972397

23982398
)

test/examples/sample15-nuget-analyzers/sample15-nuget-analyzers.fsproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>sample14_nuget_analyzers</RootNamespace>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7+
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
78
</PropertyGroup>
89

910
<ItemGroup>
@@ -12,12 +13,12 @@
1213

1314
<ItemGroup>
1415
<PackageReference Include="G-Research.FSharp.Analyzers" Version="0.18.0">
15-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16-
<PrivateAssets>all</PrivateAssets>
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>analyzers</IncludeAssets>
1718
</PackageReference>
1819
<PackageReference Include="Ionide.Analyzers" Version="0.14.7">
19-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
20-
<PrivateAssets>all</PrivateAssets>
20+
<PrivateAssets>all</PrivateAssets>
21+
<IncludeAssets>analyzers</IncludeAssets>
2122
</PackageReference>
2223
</ItemGroup>
2324

0 commit comments

Comments
 (0)