Disable RPMBuild if not building RefPack, fix template test RefPack version
This commit is contained in:
parent
a071e40e34
commit
d7faa8fc48
|
|
@ -32,7 +32,7 @@
|
||||||
<Target Name="Build" DependsOnTargets="RpmBuild" />
|
<Target Name="Build" DependsOnTargets="RpmBuild" />
|
||||||
<Target Name="Pack" />
|
<Target Name="Pack" />
|
||||||
|
|
||||||
<Target Name="RpmBuild" DependsOnTargets="$(RpmBuildDependsOn)">
|
<Target Name="RpmBuild" DependsOnTargets="$(RpmBuildDependsOn)" Condition="'$(IsTargetingPackBuilding)' != 'false'">
|
||||||
<!-- Create layout: Create changelog -->
|
<!-- Create layout: Create changelog -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ChangeLogProps>DATE=$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))</ChangeLogProps>
|
<ChangeLogProps>DATE=$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))</ChangeLogProps>
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,20 @@
|
||||||
DependsOnTargets="PrepareForTest"
|
DependsOnTargets="PrepareForTest"
|
||||||
Condition="$(DesignTimeBuild) != true">
|
Condition="$(DesignTimeBuild) != true">
|
||||||
<!-- The version of the shared framework. This is used in tests to ensure they run against the shared framework version we just built. -->
|
<!-- The version of the shared framework. This is used in tests to ensure they run against the shared framework version we just built. -->
|
||||||
|
<!-- If we aren' building the targeting pack, use the baseline version -->
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\ref\Microsoft.AspNetCore.App.Ref.csproj"
|
<MSBuild Projects="$(RepoRoot)src\Framework\ref\Microsoft.AspNetCore.App.Ref.csproj"
|
||||||
Targets="_GetPackageVersionInfo"
|
Targets="_GetPackageVersionInfo"
|
||||||
SkipNonexistentProjects="false">
|
SkipNonexistentProjects="false"
|
||||||
|
Condition="'$(IsTargetingPackBuilding)' != 'false'">
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackVersionInfo" />
|
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackVersionInfo" />
|
||||||
</MSBuild>
|
</MSBuild>
|
||||||
|
|
||||||
|
<!-- Targeting pack version should be the one we just built, if we're building it. Otherwise we use the baseline version -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' != 'false'">@(_TargetingPackVersionInfo->'%(PackageVersion)'</MicrosoftAspNetCoreAppRefPackageVersion>
|
||||||
|
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' == 'false'">$(AspNetCoreBaselineVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Runtime and Ref packs may have separate versions. -->
|
<!-- Runtime and Ref packs may have separate versions. -->
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\src\Microsoft.AspNetCore.App.Runtime.csproj"
|
<MSBuild Projects="$(RepoRoot)src\Framework\src\Microsoft.AspNetCore.App.Runtime.csproj"
|
||||||
Targets="_GetPackageVersionInfo"
|
Targets="_GetPackageVersionInfo"
|
||||||
|
|
@ -25,7 +33,7 @@
|
||||||
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
||||||
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
||||||
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
||||||
MicrosoftAspNetCoreAppRefPackageVersion=@(_TargetingPackVersionInfo->'%(PackageVersion)');
|
MicrosoftAspNetCoreAppRefPackageVersion=$(MicrosoftAspNetCoreAppRefPackageVersion);
|
||||||
MicrosoftAspNetCoreAppRuntimePackageVersion=@(_RuntimePackageVersionInfo->'%(PackageVersion)');
|
MicrosoftAspNetCoreAppRuntimePackageVersion=@(_RuntimePackageVersionInfo->'%(PackageVersion)');
|
||||||
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers);
|
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers);
|
||||||
</PropsProperties>
|
</PropsProperties>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue