/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ProjectTemplates/GenerateContent.targets
53 строки
2 KB
dotnet-maestro[bot]
[main] Source code updates from dotnet/dotnet (#67024)
07 июн 2026, 01:16
Не верифицирован
07 июн 2026, 01:16
7f0d5e9
Код
Авторство
О чём код?
<Project> <PropertyGroup> <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> <!-- Use for incremental builds. When versions or dependencies of templates change, this file is updated and causes a re-build. --> <_GenerateContentPropertiesHashFile>$(IntermediateOutputPath)$(MSBuildProjectName).content.g.cache</_GenerateContentPropertiesHashFile> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" AllowExplicitReference="true" PrivateAssets="All" IsImplicitlyDefined="true" /> </ItemGroup> <!-- Generates content using MSBuild variables. --> <Target Name="GetPackageVersionVariables"> <!-- This target is defined in eng/targets/Packaging.targets --> <MSBuild Projects="@(PackageVersionVariableReference)" BuildInParallel="true" Targets="_GetPackageVersionInfo"> <Output TaskParameter="TargetOutputs" ItemName="_ResolvedPackageVersionVariableReference" /> </MSBuild> <PropertyGroup> <GeneratedContentProperties> $(GeneratedContentProperties); @(_ResolvedPackageVersionVariableReference->'%(VersionVariableName)=%(PackageVersion)')</GeneratedContentProperties> </PropertyGroup> <Hash ItemsToHash="$(GeneratedContentProperties)"> <Output TaskParameter="HashResult" PropertyName="_GeneratedContentPropertiesHash" /> </Hash> <WriteLinesToFile Overwrite="true" Lines="$(_GeneratedContentPropertiesHash)" File="$(_GenerateContentPropertiesHashFile)" WriteOnlyWhenDifferent="true" /> </Target> <Target Name="GenerateContent" DependsOnTargets="GetPackageVersionVariables" BeforeTargets="CoreCompile" Inputs="$(MSBuildAllProjects);$(_GenerateContentPropertiesHashFile);@(GeneratedContent)" Outputs="@(GeneratedContent->'%(OutputPath)')"> <GenerateFileFromTemplate TemplateFile="%(GeneratedContent.Identity)" Properties="$(GeneratedContentProperties);%(GeneratedContent.AdditionalProperties)" SkipUnchanged="true" OutputPath="%(GeneratedContent.OutputPath)"> <Output TaskParameter="ResolvedOutputPath" ItemName="FileWrites" /> <Output TaskParameter="ResolvedOutputPath" ItemName="Content" /> </GenerateFileFromTemplate> </Target> </Project>