Ensure PackageVersion is set when computing sharedfx output path

This commit is contained in:
Nate McMaster 2017-12-27 13:30:38 -08:00
parent 4a3f00b255
commit 50391c0341
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,10 @@
<Import Project="common.props" />
<Import Project="SharedFx.props" />
<PropertyGroup>
<SharedFxOutputPath>$([MSBuild]::NormalizeDirectory($(ArtifactsDir)))assets\Runtime\$(PackageVersion)\</SharedFxOutputPath>
</PropertyGroup>
<Target Name="BuildMetapackage" DependsOnTargets="ResolveRepoInfo">
<!-- Clear working directory -->
<RemoveDir Directories="$(_WorkRoot)" />
@ -122,6 +126,8 @@
Lines="@(VersionLines)"
Overwrite="true" />
<MakeDir Directories="$(SharedFxOutputPath)" />
<!--
Used by the downloader scripts when pulling from a 'channel' instead of a specific version.
The second line must be the package version.

View File

@ -11,7 +11,6 @@
<SubmoduleRoot>$(RepositoryRoot)modules\</SubmoduleRoot>
<LineupBuildDir>$([MSBuild]::NormalizeDirectory($(ArtifactsDir)))lineups\</LineupBuildDir>
<SharedFxOutputPath>$([MSBuild]::NormalizeDirectory($(ArtifactsDir)))assets\Runtime\$(PackageVersion)\</SharedFxOutputPath>
<DependencyPackageDir>$(RepositoryRoot).deps\build\</DependencyPackageDir>
<DependencyMirrorPackageDir>$(RepositoryRoot).deps\mirror\</DependencyMirrorPackageDir>