From a953140e51bb5f94f2b75728b0aa9617dc3e4a84 Mon Sep 17 00:00:00 2001 From: nojaf Date: Mon, 13 Nov 2023 16:20:34 +0100 Subject: [PATCH] =?UTF-8?q?Some=20more=20MSBuild=20magic=20=F0=9F=AA=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../build/FSharp.Analyzers.Build.targets | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/FSharp.Analyzers.Build/build/FSharp.Analyzers.Build.targets b/src/FSharp.Analyzers.Build/build/FSharp.Analyzers.Build.targets index 4c3768c..db55099 100644 --- a/src/FSharp.Analyzers.Build/build/FSharp.Analyzers.Build.targets +++ b/src/FSharp.Analyzers.Build/build/FSharp.Analyzers.Build.targets @@ -1,28 +1,33 @@ - - + + - - - + IgnoreExitCode="true" + Command="dotnet fsharp-analyzers --project "$(MSBuildProjectFile)" $(FSharpAnalyzersOtherFlags)" /> + + + true + true + true + + + + DependsOnTargets="_SetDesignTimePropertiesForFSharpAnalyzers;Restore;ResolveAssemblyReferencesDesignTime;ResolveProjectReferencesDesignTime;ResolvePackageDependenciesDesignTime;FindReferenceAssembliesForReferences;_GenerateCompileDependencyCache;_ComputeNonExistentFileProperty;BeforeBuild;BeforeCompile;CoreCompile;SetFSharpAnalyzersOtherFlags"> - + + - - - + IgnoreExitCode="true" + Command="dotnet fsharp-analyzers --fsc-args "@(FscCommandLineArgs)" $(FSharpAnalyzersOtherFlags)" />