Update manifest names
This commit is contained in:
parent
298776c48c
commit
1619166911
|
|
@ -15,6 +15,13 @@
|
||||||
<ArchiverProject>$(RepositoryRoot)src\dotnet-archive\dotnet-archive.csproj</ArchiverProject>
|
<ArchiverProject>$(RepositoryRoot)src\dotnet-archive\dotnet-archive.csproj</ArchiverProject>
|
||||||
<ArchiverBinary>$(RepositoryRoot)src\dotnet-archive\bin\$(Configuration)\netcoreapp2.0\dotnet-archive.dll</ArchiverBinary>
|
<ArchiverBinary>$(RepositoryRoot)src\dotnet-archive\bin\$(Configuration)\netcoreapp2.0\dotnet-archive.dll</ArchiverBinary>
|
||||||
|
|
||||||
|
<!-- Determine ASP.NET Package Version -->
|
||||||
|
<NoTimestampSuffix Condition="'$(TIMESTAMP_FREE_VERSION)' != ''">$(TIMESTAMP_FREE_VERSION)</NoTimestampSuffix>
|
||||||
|
<NoTimestampSuffix Condition="'$(NoTimestampSuffix)' == ''">final</NoTimestampSuffix>
|
||||||
|
|
||||||
|
<NoTimestampVersion>$(VersionPrefix)-$(OriginalVersionSuffix)-$(NoTimestampSuffix)</NoTimestampVersion>
|
||||||
|
<TimestampVersion>$(VersionPrefix)-$(OriginalVersionSuffix)-$(BuildNumber)</TimestampVersion>
|
||||||
|
|
||||||
<WorkingDirectory>$(MetaPackagePath)bin\work\</WorkingDirectory>
|
<WorkingDirectory>$(MetaPackagePath)bin\work\</WorkingDirectory>
|
||||||
<PackageCacheOutputPath>$(MetaPackagePath)bin\packageCache\</PackageCacheOutputPath>
|
<PackageCacheOutputPath>$(MetaPackagePath)bin\packageCache\</PackageCacheOutputPath>
|
||||||
<ArtifactsDir>$(RepositoryRoot)artifacts\</ArtifactsDir>
|
<ArtifactsDir>$(RepositoryRoot)artifacts\</ArtifactsDir>
|
||||||
|
|
@ -69,7 +76,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageStoreManifestFiles Include="$(PackageCacheOutputPath)**\artifact.xml">
|
<PackageStoreManifestFiles Include="$(PackageCacheOutputPath)**\artifact.xml">
|
||||||
<DestinationFile>manifest.$(RID).xml</DestinationFile>
|
<TimestampDestinationFile>aspnetcore-store-$(TimestampVersion)-$(RID).xml</TimestampDestinationFile>
|
||||||
</PackageStoreManifestFiles>
|
</PackageStoreManifestFiles>
|
||||||
<_PackageCacheFiles Include="$(PackageCacheOutputPath)**\*" Exclude="$(PackageCacheOutputPath)**\artifact.xml" />
|
<_PackageCacheFiles Include="$(PackageCacheOutputPath)**\*" Exclude="$(PackageCacheOutputPath)**\artifact.xml" />
|
||||||
<PackageCacheFiles Include="@(_PackageCacheFiles)" >
|
<PackageCacheFiles Include="@(_PackageCacheFiles)" >
|
||||||
|
|
@ -78,7 +85,7 @@
|
||||||
<DepsFiles Include="$(DepsOutputPath)**\*" />
|
<DepsFiles Include="$(DepsOutputPath)**\*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Move SourceFiles="%(PackageStoreManifestFiles.FullPath)" DestinationFiles="$(ArtifactsDir)%(PackageStoreManifestFiles.DestinationFile)" />
|
<Move SourceFiles="%(PackageStoreManifestFiles.FullPath)" DestinationFiles="$(ArtifactsDir)%(PackageStoreManifestFiles.TimestampDestinationFile)" />
|
||||||
|
|
||||||
<Copy SourceFiles="@(DepsFiles)" DestinationFolder="$(ArtifactsZipTimestampDir)additionalDeps\%(RecursiveDir)" />
|
<Copy SourceFiles="@(DepsFiles)" DestinationFolder="$(ArtifactsZipTimestampDir)additionalDeps\%(RecursiveDir)" />
|
||||||
<Copy SourceFiles="@(PackageCacheFiles)" DestinationFolder="$(ArtifactsZipTimestampDir)store\%(RecursiveDir)" />
|
<Copy SourceFiles="@(PackageCacheFiles)" DestinationFolder="$(ArtifactsZipTimestampDir)store\%(RecursiveDir)" />
|
||||||
|
|
@ -158,12 +165,6 @@
|
||||||
|
|
||||||
<!-- Determine ASP.NET Package Version -->
|
<!-- Determine ASP.NET Package Version -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<NoTimestampSuffix Condition="'$(TIMESTAMP_FREE_VERSION)' != ''">$(TIMESTAMP_FREE_VERSION)</NoTimestampSuffix>
|
|
||||||
<NoTimestampSuffix Condition="'$(NoTimestampSuffix)' == ''">final</NoTimestampSuffix>
|
|
||||||
|
|
||||||
<NoTimestampVersion>$(VersionPrefix)-$(OriginalVersionSuffix)-$(NoTimestampSuffix)</NoTimestampVersion>
|
|
||||||
<TimestampVersion>$(VersionPrefix)-$(OriginalVersionSuffix)-$(BuildNumber)</TimestampVersion>
|
|
||||||
|
|
||||||
<NoTimestampSource>$(COHERENCE_SIGNED_DROP_LOCATION)\Signed\Packages-NoTimeStamp</NoTimestampSource>
|
<NoTimestampSource>$(COHERENCE_SIGNED_DROP_LOCATION)\Signed\Packages-NoTimeStamp</NoTimestampSource>
|
||||||
<TimestampSource>$(COHERENCE_SIGNED_DROP_LOCATION)\Signed\Packages</TimestampSource>
|
<TimestampSource>$(COHERENCE_SIGNED_DROP_LOCATION)\Signed\Packages</TimestampSource>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,13 @@
|
||||||
<Content Include="build\**\*.targets" PackagePath="%(Identity)" />
|
<Content Include="build\**\*.targets" PackagePath="%(Identity)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="UpdateManifestVersionNumbers" BeforeTargets="GenerateNuspec">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ManifestTargetsFile>$(MSBuildThisFileDirectory)build\PublishWithAspNetCoreTargetManifest.targets</ManifestTargetsFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Exec Command="powershell.exe -command "(Get-Content $(ManifestTargetsFile)).replace('__MANIFEST_VERSION__','$(VersionPrefix)-$(VersionSuffix)') | Set-Content $(ManifestTargetsFile)"" Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
|
<Exec Command="sed -i -e "s/__MANIFEST_VERSION__/$(VersionPrefix)-$(VersionSuffix)/g" $(ManifestTargetsFile)" Condition="'$(OS)' != 'Windows_NT'"/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(PublishWithAspNetCoreTargetManifest)'=='true'">
|
<PropertyGroup Condition="'$(PublishWithAspNetCoreTargetManifest)'=='true'">
|
||||||
<TargetManifestFiles>$(TargetManifestFiles);$(MSBuildThisFileDirectory)manifest.win7-x64.xml;$(MSBuildThisFileDirectory)manifest.win7-x86.xml;$(MSBuildThisFileDirectory)manifest.osx-x64.xml;$(MSBuildThisFileDirectory)manifest.linux-x64.xml</TargetManifestFiles>
|
<TargetManifestFiles>$(TargetManifestFiles);$(MSBuildThisFileDirectory)aspnetcore-store-__MANIFEST_VERSION__-win7-x64.xml;$(MSBuildThisFileDirectory)aspnetcore-store-__MANIFEST_VERSION__-win7-x86.xml;$(MSBuildThisFileDirectory)aspnetcore-store-__MANIFEST_VERSION__-osx-x64.xml;$(MSBuildThisFileDirectory)aspnetcore-store-__MANIFEST_VERSION__-linux-x64.xml</TargetManifestFiles>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue