Skip to content

Commit 86aaa99

Browse files
committed
Remove "_" prefixes from .targets elements
1 parent 7777609 commit 86aaa99

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.targets

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project>
22

33
<!-- Get the analyzer from the CommunityToolkit.Mvvm NuGet package -->
4-
<Target Name="_MVVMToolkitGatherAnalyzers">
4+
<Target Name="MVVMToolkitGatherAnalyzers">
55
<ItemGroup>
6-
<_MVVMToolkitAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'CommunityToolkit.Mvvm'" />
6+
<MVVMToolkitAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'CommunityToolkit.Mvvm'" />
77
</ItemGroup>
88
</Target>
99

1010
<!-- Remove the analyzer if using Roslyn 3.x (incremental generators require Roslyn 4.x) -->
11-
<Target Name="_MVVMToolkitRemoveAnalyzersForRoslyn3"
11+
<Target Name="MVVMToolkitRemoveAnalyzersForRoslyn3"
1212
Condition="'$(CSharpCoreTargetsPath)' != ''"
1313
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
14-
DependsOnTargets="_MVVMToolkitGatherAnalyzers">
14+
DependsOnTargets="MVVMToolkitGatherAnalyzers">
1515

1616
<!-- Use the CSharpCoreTargetsPath property to find the version of the compiler we are using. This is the same mechanism
1717
MSBuild uses to find the compiler. We could check the assembly version for any compiler assembly (since they all have
@@ -32,7 +32,7 @@
3232

3333
<!-- If the Roslyn version is < 4.0, disable the source generators -->
3434
<ItemGroup Condition ="'$(MVVMToolkitCurrentCompilerVersionIsNotNewEnough)' == 'true'">
35-
<Analyzer Remove="@(_MVVMToolkitAnalyzer)"/>
35+
<Analyzer Remove="@(MVVMToolkitAnalyzer)"/>
3636
</ItemGroup>
3737

3838
<!-- If the source generators are disabled, also emit a warning. This would've been produced by MSBuild itself as well, but
@@ -42,14 +42,14 @@
4242
</Target>
4343

4444
<!-- Remove the analyzer if Roslyn is missing -->
45-
<Target Name="_MVVMToolkitRemoveAnalyzersForRosynNotFound"
45+
<Target Name="MVVMToolkitRemoveAnalyzersForRosynNotFound"
4646
Condition="'$(CSharpCoreTargetsPath)' == ''"
4747
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
48-
DependsOnTargets="_MVVMToolkitGatherAnalyzers">
48+
DependsOnTargets="MVVMToolkitGatherAnalyzers">
4949

5050
<!-- If no Roslyn assembly could be found, just remove the analyzer without emitting a warning -->
5151
<ItemGroup>
52-
<Analyzer Remove="@(_MVVMToolkitAnalyzer)"/>
52+
<Analyzer Remove="@(MVVMToolkitAnalyzer)"/>
5353
</ItemGroup>
5454
</Target>
5555

0 commit comments

Comments
 (0)