You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- If the source generators are disabled, also emit a warning. This would've been produced by MSBuild itself as well, but
39
-
emitting this manually lets us customize the message to inform developers as to why exactly the generators have been
40
-
disabled, and that the rest of the MVVM Toolkit will still keep working as intended, just without additional features. -->
52
+
<!--
53
+
If the source generators are disabled, also emit a warning. This would've been produced by MSBuild itself as well, but
54
+
emitting this manually lets us customize the message to inform developers as to why exactly the generators have been
55
+
disabled, and that the rest of the MVVM Toolkit will still keep working as intended, just without additional features.
56
+
-->
41
57
<Warning Condition ="'$(MVVMToolkitCurrentCompilerVersionIsNotNewEnough)' == 'true'"Text="The MVVM Toolkit source generators have been disabled on the current configuration, as they need Roslyn 4.x in order to work. The MVVM Toolkit will work just fine, but features relying on the source generators will not be available."/>
58
+
59
+
<PropertyGroup>
60
+
61
+
<!--
62
+
Setup the checks for the MVVMToolkitRemoveDuplicateAnalyzersWhenRoslynComponentVersioningIsNotSupported target below.
63
+
These are done here so that the following target can run only if it's sure this one has run, which is a necessary
64
+
condition to ensure all dependent MSBuild properties defined here will also be available there whenever needed.
65
+
-->
66
+
<MVVMToolkitIsManualRoslynMultiTargetingLogicNeededCondition="'$(MVVMToolkitCurrentCompilerVersionIsNotNewEnough)' != 'true' AND '$(SupportsRoslynComponentVersioning)' != 'true'">true</MVVMToolkitIsManualRoslynMultiTargetingLogicNeeded>
67
+
</PropertyGroup>
42
68
</Target>
43
69
44
70
<!--
45
71
Manually remove duplicate analyzers if Roslyn component versioning is not supported (ie. if a legacy .csproj project is used).
46
72
This target is only run if Roslyn 4.0 or greater is present, as otherwise all analyzers would have already been removed anyway.
73
+
Additionally, skip this target if MVVMToolkitRemoveAnalyzersForRoslyn3 has been skipped (ie. if $(CSharpCoreTargetsPath) is not
74
+
defined, which will be the case on VB.NET projects). In these cases, MVVMToolkitRemoveAnalyzersForRosynNotFound will run at the
75
+
end and will remove all source generators (as they're only supported in C# projects), so there's nothing left to do here.
0 commit comments