|
1 | 1 | <Project> |
2 | 2 |
|
3 | | - <!-- Get the analyzer from the CommunityToolkit.Mvvm NuGet package --> |
| 3 | + <!-- Get the analyzer from the 'CommunityToolkit.Mvvm' NuGet package --> |
4 | 4 | <Target Name="_MVVMToolkitGatherAnalyzers"> |
5 | 5 | <ItemGroup> |
6 | 6 | <_MVVMToolkitAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'CommunityToolkit.Mvvm'" /> |
|
14 | 14 | DependsOnTargets="_MVVMToolkitGatherAnalyzers"> |
15 | 15 |
|
16 | 16 | <!-- |
17 | | - Use the CSharpCoreTargetsPath property to find the version of the compiler we are using. This is the same mechanism |
| 17 | + Use the 'CSharpCoreTargetsPath' property to find the version of the compiler we are using. This is the same mechanism |
18 | 18 | MSBuild uses to find the compiler. We could check the assembly version for any compiler assembly (since they all have |
19 | | - the same version) but Microsoft.Build.Tasks.CodeAnalysis.dll is where MSBuild loads the compiler tasks from so if |
| 19 | + the same version) but 'Microsoft.Build.Tasks.CodeAnalysis.dll' is where MSBuild loads the compiler tasks from so if |
20 | 20 | someone is getting creative with msbuild tasks/targets this is the "most correct" assembly to check. |
21 | 21 | --> |
22 | | - <GetAssemblyIdentity AssemblyFiles="$([System.IO.Path]::Combine(`$([System.IO.Path]::GetDirectoryName($(CSharpCoreTargetsPath)))`,`Microsoft.Build.Tasks.CodeAnalysis.dll`))"> |
| 22 | + <GetAssemblyIdentity AssemblyFiles="$([System.IO.Path]::Combine($([System.IO.Path]::GetDirectoryName($(CSharpCoreTargetsPath))), 'Microsoft.Build.Tasks.CodeAnalysis.dll'))"> |
23 | 23 | <Output TaskParameter="Assemblies" ItemName="CurrentCompilerAssemblyIdentity"/> |
24 | 24 | </GetAssemblyIdentity> |
25 | 25 |
|
26 | 26 | <PropertyGroup> |
27 | | - <!-- Transform the resulting item from GetAssemblyIdentity into a property representing its assembly version --> |
| 27 | + <!-- Transform the resulting item from 'GetAssemblyIdentity' task into a property representing its assembly version --> |
28 | 28 | <CurrentCompilerVersion>@(CurrentCompilerAssemblyIdentity->'%(Version)')</CurrentCompilerVersion> |
29 | 29 |
|
30 | | - <!-- The CurrentCompilerVersionIsNotNewEnough property can now be defined based on the Roslyn assembly version --> |
| 30 | + <!-- The 'CurrentCompilerVersionIsNotNewEnough' property can now be defined based on the Roslyn assembly version --> |
31 | 31 | <CurrentCompilerVersionIsNotNewEnough Condition="$([MSBuild]::VersionLessThan($(CurrentCompilerVersion), 4.0))">true</CurrentCompilerVersionIsNotNewEnough> |
32 | 32 | </PropertyGroup> |
33 | 33 |
|
|
0 commit comments