Skip to content

Commit 530335b

Browse files
committed
Utilize FSharpAnalyzers_Exe for testing in repo
1 parent 152165f commit 530335b

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66
"version": "20.0.0",
77
"commands": [
88
"fsdocs"
9-
],
10-
"rollForward": false
11-
},
12-
"fsharp-analyzers": {
13-
"version": "0.32.0",
14-
"commands": [
15-
"fsharp-analyzers"
16-
],
17-
"rollForward": false
9+
]
1810
}
1911
}
2012
}

samples/MsBuildExample/MsBuildExample.fsproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\src\FSharp.Analyzers.Build\buildMultitargeting\FSharp.Analyzers.Build.targets" />
3+
<Import Project="../../src/FSharp.Analyzers.Build/buildMultitargeting/FSharp.Analyzers.Build.targets" />
44

55

66
<PropertyGroup>
77
<RunAnalyzers>true</RunAnalyzers>
88
<FSharpAnalyzersOtherFlags>--analyzers-path "../../artifacts/bin/OptionAnalyzer/debug" -v d</FSharpAnalyzersOtherFlags>
9+
<FSharpAnalyzers_Exe>../../artifacts/bin/FSharp.Analyzers.Cli/debug/FSharp.Analyzers.Cli.dll</FSharpAnalyzers_Exe>
910
<!-- <FSharpAnalyzers_AlwaysRunAfterBuild>true</FSharpAnalyzers_AlwaysRunAfterBuild> -->
1011
</PropertyGroup>
1112

@@ -19,7 +20,8 @@
1920
</ItemGroup>
2021

2122
<ItemGroup>
22-
<ProjectReference Include="..\OptionAnalyzer\OptionAnalyzer.fsproj" />
23+
<ProjectReference Include="../OptionAnalyzer/OptionAnalyzer.fsproj" ReferenceOutputAssembly="false" />
24+
<ProjectReference Include="../../src/FSharp.Analyzers.Cli/FSharp.Analyzers.Cli.fsproj" ReferenceOutputAssembly="false" />
2325
</ItemGroup>
2426

2527
</Project>

0 commit comments

Comments
 (0)