Ctrl K
ComunidadGuías…

Directory.Build.targets

Rama dev · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<Project>
  <!--
    Capture the UTC build timestamp at evaluation time and embed it as an
    AssemblyMetadata attribute. The git commit hash is already embedded by
    Microsoft.SourceLink.GitHub in AssemblyInformationalVersion as
    "{VersionPrefix}+{full-sha}", so no separate action is needed for it.
  -->
  <PropertyGroup>
    <BuildTimestamp>$([System.DateTime]::UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ"))</BuildTimestamp>
  </PropertyGroup>
  <ItemGroup>
    <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
      <_Parameter1>BuildTimestamp</_Parameter1>
      <_Parameter2>$(BuildTimestamp)</_Parameter2>
    </AssemblyAttribute>
  </ItemGroup>
  <!--
    Test projects that set UseTestRunTempRoot get a private temp root per test
    process and a gate that fails the run when a test leaks into it.
  -->
  <ItemGroup Condition="'$(UseTestRunTempRoot)' == 'true'">
    <Compile Include="$(MSBuildThisFileDirectory)tests/Shared/TestRunTempRoot.cs" Link="TestRunTempRoot.cs" />
  </ItemGroup>
</Project>