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
Copy file name to clipboardExpand all lines: src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.targets
+48-1Lines changed: 48 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,10 @@
54
54
emitting this manually lets us customize the message to inform developers as to why exactly the generators have been
55
55
disabled, and that the rest of the MVVM Toolkit will still keep working as intended, just without additional features.
56
56
-->
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."/>
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
61
59
62
<PropertyGroup>
60
63
@@ -99,4 +102,48 @@
99
102
</ItemGroup>
100
103
</Target>
101
104
105
+
<!--
106
+
Inform the user if packages.config is used (as the analyzers and the source generators
107
+
won't work at all). Since packages.config can only be used with legacy-style projects,
108
+
the entire package can be skipped if an SDK-style project is used.
Text="The MVVM Toolkit source generators might not be loaded correctly, as the current project is using the packages.config setup to restore NuGet packages. Source generators require PackageReference to be used (either in a legacy-style or SDK-style .csproj project, both are supported as long as PackageReference is used)."/>
0 commit comments