|
25 | 25 | <Project> |
26 | 26 |
|
27 | 27 | <PropertyGroup> |
28 | | - <!-- Mark that this target file has been loaded. --> |
| 28 | + <!-- Mark that this target file has been loaded --> |
29 | 29 | <IsRestoreTargetsFileLoaded>true</IsRestoreTargetsFileLoaded> |
30 | 30 | <!-- Do not hide errors and warnings by default --> |
31 | 31 | <HideWarningsAndErrors Condition="'$(HideWarningsAndErrors)' == ''">false</HideWarningsAndErrors> |
|
41 | 41 | <RestoreBuildInParallel Condition="'$(RestoreBuildInParallel)' == ''">true</RestoreBuildInParallel> |
42 | 42 | <!-- Check if the restore target was executed on a sln file --> |
43 | 43 | <_RestoreSolutionFileUsed Condition="'$(_RestoreSolutionFileUsed)' == '' AND '$(SolutionDir)' != '' AND '$(MSBuildProjectExtension)' == '.metaproj'">true</_RestoreSolutionFileUsed> |
44 | | - <!-- We default to MSBuildInteractive. --> |
| 44 | + <!-- We default to MSBuildInteractive --> |
45 | 45 | <NuGetInteractive Condition="'$(NuGetInteractive)' == ''">$(MSBuildInteractive)</NuGetInteractive> |
46 | | - <!-- Mark that this targets file supports package download. --> |
| 46 | + <!-- Mark that this targets file supports package download --> |
47 | 47 | <PackageDownloadSupported>true</PackageDownloadSupported> |
48 | 48 | <!-- Mark that this targets file GetReferenceNearestTargetFrameworkTask task supports the TargetPlatformMoniker --> |
49 | 49 | <GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>true</GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter> |
|
52 | 52 | </PropertyGroup> |
53 | 53 |
|
54 | 54 | <PropertyGroup> |
55 | | - <!-- Exclude packages from changing restore inputs. --> |
| 55 | + <!-- Exclude packages from changing restore inputs --> |
56 | 56 | <_GenerateRestoreGraphProjectEntryInputProperties>ExcludeRestorePackageImports=true</_GenerateRestoreGraphProjectEntryInputProperties> |
57 | 57 |
|
58 | 58 | <!-- |
|
70 | 70 | CustomAfterMicrosoftCommonCrossTargetingTargets=$(MSBuildThisFileFullPath); |
71 | 71 | </_GenerateRestoreGraphProjectEntryInputProperties> |
72 | 72 |
|
73 | | - <!-- Include SolutionDir and SolutionName for solution restores and persist these properties during the walk. --> |
| 73 | + <!-- Include SolutionDir and SolutionName for solution restores and persist these properties during the walk --> |
74 | 74 | <_GenerateRestoreGraphProjectEntryInputProperties Condition="'$(_RestoreSolutionFileUsed)' == 'true'"> |
75 | 75 | $(_GenerateRestoreGraphProjectEntryInputProperties); |
76 | 76 | _RestoreSolutionFileUsed=true; |
|
119 | 119 | ============================================================ |
120 | 120 | --> |
121 | 121 | <Target Name="GenerateRestoreGraphFile" DependsOnTargets="_GenerateRestoreGraph"> |
122 | | - <!-- Validate --> |
| 122 | + <!-- Validate --> |
123 | 123 | <Error Condition="$(RestoreGraphOutputPath) == ''" Text="Please specify where to write the restore graph output files with the 'RestoreGraphOutputPath' property!"/> |
124 | 124 |
|
125 | 125 | <!-- Drop any duplicate items --> |
|
267 | 267 | <_FilteredRestoreGraphProjectInputItems/> |
268 | 268 | </ItemGroup> |
269 | 269 |
|
270 | | - <!-- Remove projects that do not support restore. --> |
| 270 | + <!-- Remove projects that do not support restore --> |
271 | 271 | <!-- With SkipNonExistentTargets support --> |
272 | 272 | <MSBuild Condition=" '$(RestoreUseSkipNonExistentTargets)' == 'true' " |
273 | 273 | BuildInParallel="$(RestoreBuildInParallel)" |
|
293 | 293 | ItemName="FilteredRestoreGraphProjectInputItems"/> |
294 | 294 | </MSBuild> |
295 | 295 |
|
296 | | - <!-- Warn for projects that do not support restore. --> |
| 296 | + <!-- Warn for projects that do not support restore --> |
297 | 297 | <WarnForInvalidProjectsTask |
298 | 298 | Condition="'$(DisableWarnForInvalidRestoreProjects)' != 'true' AND '$(HideWarningsAndErrors)' != 'true'" |
299 | 299 | AllProjects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" |
|
309 | 309 | <Target Name="_GenerateRestoreGraph" |
310 | 310 | DependsOnTargets="_FilterRestoreGraphProjectInputItems;_GetAllRestoreProjectPathItems" |
311 | 311 | Returns="@(_RestoreGraphEntry)"> |
312 | | - <Message Text="Generating dg file" Importance="low"/> |
| 312 | + <Message Text="Generating directed graph spec file" Importance="low"/> |
313 | 313 | <Message Text="%(_RestoreProjectPathItems.Identity)" Importance="low"/> |
314 | 314 |
|
315 | | - <!-- Use all projects if RestoreRecursive is true. Otherwise use only the top level projects. --> |
| 315 | + <!-- Use all projects if RestoreRecursive is true. Otherwise use only the top level projects --> |
316 | 316 | <ItemGroup> |
317 | 317 | <_GenerateRestoreGraphProjectEntryInput Include="@(FilteredRestoreGraphProjectInputItems)" Condition="'$(RestoreRecursive)' != 'true'"/> |
318 | 318 | <_GenerateRestoreGraphProjectEntryInput Include="@(_RestoreProjectPathItems)" Condition="'$(RestoreRecursive)' == 'true'"/> |
319 | 319 | </ItemGroup> |
320 | 320 |
|
321 | | - <!-- Add top level entries to the direct restore list. These projects will also restore tools. --> |
| 321 | + <!-- Add top level entries to the direct restore list. These projects will also restore tools --> |
322 | 322 | <MSBuild |
323 | 323 | BuildInParallel="$(RestoreBuildInParallel)" |
324 | 324 | Projects="@(_GenerateRestoreGraphProjectEntryInput)" |
|
330 | 330 | ItemName="_RestoreGraphEntry"/> |
331 | 331 | </MSBuild> |
332 | 332 |
|
333 | | - <!-- Generate a spec for every project including dependencies. --> |
| 333 | + <!-- Generate a spec for every project including dependencies --> |
334 | 334 | <MSBuild |
335 | 335 | BuildInParallel="$(RestoreBuildInParallel)" |
336 | 336 | Projects="@(_RestoreProjectPathItems)" |
|
416 | 416 | <Target Name="_GetProjectJsonPath" |
417 | 417 | Returns="$(_CurrentProjectJsonPath)"> |
418 | 418 | <!-- Get project.json path --> |
419 | | - <!-- Skip this if the project style is already set. --> |
| 419 | + <!-- Skip this if the project style is already set --> |
420 | 420 | <GetRestoreProjectJsonPathTask |
421 | 421 | ProjectPath="$(MSBuildProjectFullPath)" |
422 | 422 | Condition="'$(RestoreProjectStyle)' == 'ProjectJson' OR '$(RestoreProjectStyle)' == ''"> |
|
433 | 433 | <Target Name="_GetRestoreProjectStyle" |
434 | 434 | DependsOnTargets="_GetProjectJsonPath;CollectPackageReferences" |
435 | 435 | Returns="$(RestoreProjectStyle);$(PackageReferenceCompatibleProjectStyle)"> |
436 | | - <!-- This may be overridden by setting RestoreProjectStyle in the project. --> |
| 436 | + <!-- This may be overridden by setting RestoreProjectStyle in the project --> |
437 | 437 | <PropertyGroup> |
438 | 438 | <_HasPackageReferenceItems Condition="@(PackageReference->Count()) > 0">true</_HasPackageReferenceItems> |
439 | 439 | </PropertyGroup> |
|
487 | 487 | <_RestoreProjectFramework/> |
488 | 488 | </PropertyGroup> |
489 | 489 |
|
490 | | - <!-- For project.json projects target frameworks will be read from project.json. --> |
| 490 | + <!-- For project.json projects target frameworks will be read from project.json --> |
491 | 491 | <GetProjectTargetFrameworksTask |
492 | 492 | Condition="'$(RestoreProjectStyle)' != 'ProjectJson'" |
493 | 493 | ProjectPath="$(MSBuildProjectFullPath)" |
|
586 | 586 | <!-- |
587 | 587 | ============================================================ |
588 | 588 | _GetRestoreSettingsAllFrameworks |
589 | | - Generate items for a single framework. |
| 589 | + Generate items for all frameworks. |
590 | 590 | ============================================================ |
591 | 591 | --> |
592 | 592 | <Target Name="_GetRestoreSettingsAllFrameworks" |
593 | 593 | Condition="'$(TargetFrameworks)' != '' AND '$(PackageReferenceCompatibleProjectStyle)' == 'true'" |
594 | 594 | DependsOnTargets="_GetRestoreTargetFrameworksAsItems;_GetRestoreProjectStyle" |
595 | 595 | Returns="@(_RestoreSettingsPerFramework)"> |
596 | 596 |
|
597 | | - <!-- Read additional sources and fallback folders for each framework --> |
| 597 | + <!-- Read additional sources and fallback folders for each framework --> |
598 | 598 | <MSBuild |
599 | 599 | BuildInParallel="$(RestoreBuildInParallel)" |
600 | 600 | Projects="$(MSBuildProjectFullPath)" |
|
708 | 708 | <RestorePackagesWithLockFile>$(RestorePackagesWithLockFile)</RestorePackagesWithLockFile> |
709 | 709 | <NuGetLockFilePath>$(NuGetLockFilePath)</NuGetLockFilePath> |
710 | 710 | <RestoreLockedMode>$(RestoreLockedMode)</RestoreLockedMode> |
711 | | - <CentralPackageVersionsEnabled>$(_CentralPackageVersionsEnabled)</CentralPackageVersionsEnabled> |
| 711 | + <_CentralPackageVersionsEnabled>$(_CentralPackageVersionsEnabled)</_CentralPackageVersionsEnabled> |
712 | 712 | </_RestoreGraphEntry> |
713 | 713 | </ItemGroup> |
714 | 714 |
|
|
802 | 802 | DependsOnTargets="_GetRestoreTargetFrameworksAsItems" |
803 | 803 | Returns="@(_RestoreGraphEntry)"> |
804 | 804 |
|
805 | | - <!-- Get project and package references --> |
| 805 | + <!-- Get project and package references --> |
806 | 806 | <!-- Evaluate for each framework --> |
807 | 807 | <MSBuild |
808 | 808 | BuildInParallel="$(RestoreBuildInParallel)" |
|
981 | 981 | DependsOnTargets="_GetRestoreTargetFrameworksAsItems" |
982 | 982 | Returns="@(_RestoreProjectPathItems)"> |
983 | 983 |
|
984 | | - <!-- Get all project references for the current project --> |
| 984 | + <!-- Get all project references for the current project --> |
985 | 985 | <!-- With SkipNonExistentTargets support --> |
986 | 986 | <MSBuild |
987 | 987 | Condition="'$(RestoreUseSkipNonExistentTargets)' == 'true'" |
|
1023 | 1023 | DependsOnTargets="_GenerateRestoreProjectPathItems" |
1024 | 1024 | Returns="@(_RestoreProjectPathItems)"> |
1025 | 1025 |
|
1026 | | - <!-- Walk project references --> |
| 1026 | + <!-- Walk project references --> |
1027 | 1027 | <!-- With SkipNonExistentTargets --> |
1028 | 1028 | <MSBuild |
1029 | 1029 | Condition="'$(RestoreUseSkipNonExistentTargets)' == 'true'" |
|
1078 | 1078 | DependsOnTargets="_FilterRestoreGraphProjectInputItems" |
1079 | 1079 | Returns="@(_RestoreProjectPathItems)"> |
1080 | 1080 |
|
1081 | | - <NuGetMessageTask Name="DeterminingProjectsToRestore" Importance="High" /> |
| 1081 | + <NuGetMessageTask Name="DeterminingProjectsToRestore" Importance="High"/> |
1082 | 1082 |
|
1083 | 1083 | <!-- Walk projects --> |
1084 | 1084 | <!-- With SkipNonExistentTargets --> |
|
1117 | 1117 | ItemName="_RestoreProjectPathItemsWithoutDupes"/> |
1118 | 1118 | </RemoveDuplicates> |
1119 | 1119 |
|
1120 | | - <!-- Remove projects that do not support restore. --> |
| 1120 | + <!-- Remove projects that do not support restore --> |
1121 | 1121 | <!-- With SkipNonExistentTargets --> |
1122 | 1122 | <MSBuild |
1123 | 1123 | Condition="'$(RestoreUseSkipNonExistentTargets)' == 'true'" |
|
0 commit comments