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="Pack" />
|
||||
|
||||
<Target Name="RpmBuild" DependsOnTargets="$(RpmBuildDependsOn)">
|
||||
<Target Name="RpmBuild" DependsOnTargets="$(RpmBuildDependsOn)" Condition="'$(IsTargetingPackBuilding)' != 'false'">
|
||||
<!-- Create layout: Create changelog -->
|
||||
<PropertyGroup>
|
||||
<ChangeLogProps>DATE=$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))</ChangeLogProps>
|
||||
|
|
|
|||
|
|
@ -4,12 +4,20 @@
|
|||
DependsOnTargets="PrepareForTest"
|
||||
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. -->
|
||||
<!-- If we aren' building the targeting pack, use the baseline version -->
|
||||
<MSBuild Projects="$(RepoRoot)src\Framework\ref\Microsoft.AspNetCore.App.Ref.csproj"
|
||||
Targets="_GetPackageVersionInfo"
|
||||
SkipNonexistentProjects="false">
|
||||
SkipNonexistentProjects="false"
|
||||
Condition="'$(IsTargetingPackBuilding)' != 'false'">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackVersionInfo" />
|
||||
</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. -->
|
||||
<MSBuild Projects="$(RepoRoot)src\Framework\src\Microsoft.AspNetCore.App.Runtime.csproj"
|
||||
Targets="_GetPackageVersionInfo"
|
||||
|
|
@ -25,7 +33,7 @@
|
|||
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
||||
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
||||
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
||||
MicrosoftAspNetCoreAppRefPackageVersion=@(_TargetingPackVersionInfo->'%(PackageVersion)');
|
||||
MicrosoftAspNetCoreAppRefPackageVersion=$(MicrosoftAspNetCoreAppRefPackageVersion);
|
||||
MicrosoftAspNetCoreAppRuntimePackageVersion=@(_RuntimePackageVersionInfo->'%(PackageVersion)');
|
||||
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers);
|
||||
</PropsProperties>
|
||||
|
|
|
|||
Loading…
Reference in New Issue