44 lines
2.0 KiB
XML
44 lines
2.0 KiB
XML
<Project>
|
|
|
|
<Target Name="EnsureBaselineIsUpdated"
|
|
Condition="'$(IsServicingBuild)' == 'true' AND '$(AspNetCoreBaselineVersion)' != '$(PreviousAspNetCoreReleaseVersion)'"
|
|
BeforeTargets="BeforeBuild">
|
|
<Error Text="The package baseline ($(AspNetCoreBaselineVersion)) is out of date with the latest release of this repo ($(PreviousAspNetCoreReleaseVersion)).
|
|
See $(RepositoryRoot)eng\tools\BaselineGenerator\README.md for instructions on updating this baseline." />
|
|
</Target>
|
|
|
|
<!-- Temporary: this target is used to gather version information to pass to submodule builds. This can be removed after we finish merging submodules. -->
|
|
<Target Name="GetBaselineArtifactInfo"
|
|
Condition="'$(IsPackableInNonServicingBuild)' == 'true' AND '$(IsSubfolderBuild)' != 'true' AND '$(IsPackable)' != 'true' "
|
|
Returns="@(ArtifactInfo)"
|
|
BeforeTargets="GetArtifactInfo">
|
|
|
|
<PropertyGroup>
|
|
<FullPackageOutputPath>$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg</FullPackageOutputPath>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ArtifactInfo Include="$(FullPackageOutputPath)">
|
|
<ArtifactType>NuGetPackage</ArtifactType>
|
|
<PackageId>$(PackageId)</PackageId>
|
|
<Version>$(PackageVersion)</Version>
|
|
<RepositoryRoot>$(RepositoryRoot)</RepositoryRoot>
|
|
<IsShipped>true</IsShipped>
|
|
</ArtifactInfo>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<!-- This target is used to get the package versions of projects -->
|
|
<Target Name="_GetPackageVersionInfo" DependsOnTargets="$(GetPackageVersionDependsOn)"
|
|
Returns="@(_ProjectPathWithVersion)">
|
|
<ItemGroup>
|
|
<_ProjectPathWithVersion Include="$(MSBuildProjectFullPath)" Condition="'$(IsPackable)' == 'true'">
|
|
<PackageId>$(PackageId)</PackageId>
|
|
<PackageVersion Condition="'$(PackageVersion)' != ''">$(PackageVersion)</PackageVersion>
|
|
<VersionVariableName>$(PackageId.Replace('.',''))PackageVersion</VersionVariableName>
|
|
</_ProjectPathWithVersion>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|