|
1 | 1 | <Project> |
2 | 2 |
|
3 | 3 | <!-- Get the analyzer from the CommunityToolkit.Mvvm NuGet package --> |
4 | | - <Target Name="_MVVMToolkitGatherAnalyzers"> |
| 4 | + <Target Name="MVVMToolkitGatherAnalyzers"> |
5 | 5 | <ItemGroup> |
6 | | - <_MVVMToolkitAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'CommunityToolkit.Mvvm'" /> |
| 6 | + <MVVMToolkitAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'CommunityToolkit.Mvvm'" /> |
7 | 7 | </ItemGroup> |
8 | 8 | </Target> |
9 | 9 |
|
10 | 10 | <!-- Remove the analyzer if using Roslyn 3.x (incremental generators require Roslyn 4.x) --> |
11 | | - <Target Name="_MVVMToolkitRemoveAnalyzersForRoslyn3" |
| 11 | + <Target Name="MVVMToolkitRemoveAnalyzersForRoslyn3" |
12 | 12 | Condition="'$(CSharpCoreTargetsPath)' != ''" |
13 | 13 | AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets" |
14 | | - DependsOnTargets="_MVVMToolkitGatherAnalyzers"> |
| 14 | + DependsOnTargets="MVVMToolkitGatherAnalyzers"> |
15 | 15 |
|
16 | 16 | <!-- Use the CSharpCoreTargetsPath property to find the version of the compiler we are using. This is the same mechanism |
17 | 17 | MSBuild uses to find the compiler. We could check the assembly version for any compiler assembly (since they all have |
|
32 | 32 |
|
33 | 33 | <!-- If the Roslyn version is < 4.0, disable the source generators --> |
34 | 34 | <ItemGroup Condition ="'$(MVVMToolkitCurrentCompilerVersionIsNotNewEnough)' == 'true'"> |
35 | | - <Analyzer Remove="@(_MVVMToolkitAnalyzer)"/> |
| 35 | + <Analyzer Remove="@(MVVMToolkitAnalyzer)"/> |
36 | 36 | </ItemGroup> |
37 | 37 |
|
38 | 38 | <!-- If the source generators are disabled, also emit a warning. This would've been produced by MSBuild itself as well, but |
|
42 | 42 | </Target> |
43 | 43 |
|
44 | 44 | <!-- Remove the analyzer if Roslyn is missing --> |
45 | | - <Target Name="_MVVMToolkitRemoveAnalyzersForRosynNotFound" |
| 45 | + <Target Name="MVVMToolkitRemoveAnalyzersForRosynNotFound" |
46 | 46 | Condition="'$(CSharpCoreTargetsPath)' == ''" |
47 | 47 | AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets" |
48 | | - DependsOnTargets="_MVVMToolkitGatherAnalyzers"> |
| 48 | + DependsOnTargets="MVVMToolkitGatherAnalyzers"> |
49 | 49 |
|
50 | 50 | <!-- If no Roslyn assembly could be found, just remove the analyzer without emitting a warning --> |
51 | 51 | <ItemGroup> |
52 | | - <Analyzer Remove="@(_MVVMToolkitAnalyzer)"/> |
| 52 | + <Analyzer Remove="@(MVVMToolkitAnalyzer)"/> |
53 | 53 | </ItemGroup> |
54 | 54 | </Target> |
55 | 55 |
|
|
0 commit comments