From 7330b808eeddfab7de1852b4c30250f33941f3d7 Mon Sep 17 00:00:00 2001 From: dawe Date: Wed, 8 Nov 2023 16:11:00 +0100 Subject: [PATCH 1/2] support referencing the local sdk projects instead of using the nuget packages --- Directory.Build.props | 1 + Directory.Packages.props | 6 ++++-- src/Ionide.Analyzers/Ionide.Analyzers.fsproj | 7 +++++++ tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj | 7 +++++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 39e103c..81cd132 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -32,6 +32,7 @@ true preview $(OtherFlags) --test:GraphBasedChecking --test:ParallelOptimization --test:ParallelIlxGen + false diff --git a/Directory.Packages.props b/Directory.Packages.props index 88b3d0d..beaa095 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,12 +5,14 @@ - - + + + + \ No newline at end of file diff --git a/src/Ionide.Analyzers/Ionide.Analyzers.fsproj b/src/Ionide.Analyzers/Ionide.Analyzers.fsproj index 91822c3..942cbf4 100644 --- a/src/Ionide.Analyzers/Ionide.Analyzers.fsproj +++ b/src/Ionide.Analyzers/Ionide.Analyzers.fsproj @@ -19,8 +19,15 @@ + + + + + + + diff --git a/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj b/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj index 9acd169..69511c6 100644 --- a/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj +++ b/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj @@ -20,11 +20,18 @@ + + + + + + + From 5325858f11ffbe40d2f9a5ca868771b2a474e704 Mon Sep 17 00:00:00 2001 From: dawe Date: Wed, 8 Nov 2023 16:22:37 +0100 Subject: [PATCH 2/2] - add LocalAnalyzersSDKRepo property - add documentation --- Directory.Build.props | 2 ++ docs/content/contributions.md | 5 +++++ src/Ionide.Analyzers/Ionide.Analyzers.fsproj | 2 +- tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 81cd132..5aefb17 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -32,7 +32,9 @@ true preview $(OtherFlags) --test:GraphBasedChecking --test:ParallelOptimization --test:ParallelIlxGen + false + ../../../FSharp.Analyzers.SDK diff --git a/docs/content/contributions.md b/docs/content/contributions.md index 437033a..946ee66 100644 --- a/docs/content/contributions.md +++ b/docs/content/contributions.md @@ -69,3 +69,8 @@ Please add [a new entry](https://keepachangelog.com/en/1.1.0/) for your changes. Unless, there are technical reason blocking us, we will try and ship your contribution as soon as possible. Our CI process should pick up new version from the changelog and push new packages to NuGet.org once the code is on the `main` branch. + +## Using a local analyzers SDK + +You might run into a situation when the SDK packages don't provide the features you need for your analyzers development. +In such a case, you can edit the `Directory.Build.props` file and set `UseLocalAnalyzersSDK` to `true` and let `LocalAnalyzersSDKRepo` point to your local SDK repository. diff --git a/src/Ionide.Analyzers/Ionide.Analyzers.fsproj b/src/Ionide.Analyzers/Ionide.Analyzers.fsproj index 942cbf4..b63570f 100644 --- a/src/Ionide.Analyzers/Ionide.Analyzers.fsproj +++ b/src/Ionide.Analyzers/Ionide.Analyzers.fsproj @@ -20,7 +20,7 @@ - + diff --git a/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj b/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj index 69511c6..554b868 100644 --- a/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj +++ b/tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj @@ -31,7 +31,7 @@ - +