From 7228b48b536c359dc7d132a111da6a722289213e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 14 May 2023 22:35:43 +0200 Subject: [PATCH] Port updated targets from MVVM Toolkit See https://github.com/CommunityToolkit/dotnet/pull/698 --- .../PolySharp.targets | 45 ++++++++++++++++--- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/src/PolySharp.SourceGenerators/PolySharp.targets b/src/PolySharp.SourceGenerators/PolySharp.targets index e81af34..536b2a0 100644 --- a/src/PolySharp.SourceGenerators/PolySharp.targets +++ b/src/PolySharp.SourceGenerators/PolySharp.targets @@ -42,7 +42,9 @@ emitting this manually lets us customize the message to inform developers as to why exactly the generators have been disabled, and that PolySharp will not work at all unless a more up to date IDE or compiler version are used. --> - + @@ -57,16 +59,47 @@ - + + Condition="'$(UsingMicrosoftNetSDK)' != 'true'"> + + + + true + - + + + + + + + true + + + +