Add nuspec and version.txt to artifacts
This commit is contained in:
parent
404960ce1a
commit
4d6bdba554
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<package>
|
||||||
|
<metadata>
|
||||||
|
<id>Microsoft.Internal.AspNetCore.PackageCache</id>
|
||||||
|
<authors>Microsoft</authors>
|
||||||
|
<description>Runtime Package Store for ASP.NET Core</description>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="*.zip" target="" />
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
|
|
@ -32,9 +32,10 @@
|
||||||
<MetaPackageFile>$(MetaPackagePath)Microsoft.AspNetCore.All.csproj</MetaPackageFile>
|
<MetaPackageFile>$(MetaPackagePath)Microsoft.AspNetCore.All.csproj</MetaPackageFile>
|
||||||
<WorkingDirectory>$(MetaPackagePath)bin\work</WorkingDirectory>
|
<WorkingDirectory>$(MetaPackagePath)bin\work</WorkingDirectory>
|
||||||
<OutputPath>$(MetaPackagePath)bin\packageCache\</OutputPath>
|
<OutputPath>$(MetaPackagePath)bin\packageCache\</OutputPath>
|
||||||
<OutputZip Condition="'$(OSPlatform)' == 'Windows'">$(RepositoryRoot)artifacts\Microsoft.Internal.AspNetCorePackageCache.win-$(VersionSuffix).zip</OutputZip>
|
<ArtifactsDir>$(RepositoryRoot)artifacts\</ArtifactsDir>
|
||||||
<OutputZip Condition="'$(OSPlatform)' == 'Linux'">$(RepositoryRoot)artifacts\Microsoft.Internal.AspNetCorePackageCache.linux-$(VersionSuffix).zip</OutputZip>
|
<OutputZip Condition="'$(OSPlatform)' == 'Windows'">$(ArtifactsDir)Microsoft.Internal.AspNetCorePackageCache.win-$(VersionSuffix).zip</OutputZip>
|
||||||
<OutputZip Condition="'$(OSPlatform)' == 'macOS'">$(RepositoryRoot)artifacts\Microsoft.Internal.AspNetCorePackageCache.osx-$(VersionSuffix).zip</OutputZip>
|
<OutputZip Condition="'$(OSPlatform)' == 'Linux'">$(ArtifactsDir)Microsoft.Internal.AspNetCorePackageCache.linux-$(VersionSuffix).zip</OutputZip>
|
||||||
|
<OutputZip Condition="'$(OSPlatform)' == 'macOS'">$(ArtifactsDir)Microsoft.Internal.AspNetCorePackageCache.osx-$(VersionSuffix).zip</OutputZip>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -53,5 +54,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ZipArchive File="$(OutputZip)" SourceFiles="@(PackageCacheFiles)" WorkingDirectory="$(OutputPath)" />
|
<ZipArchive File="$(OutputZip)" SourceFiles="@(PackageCacheFiles)" WorkingDirectory="$(OutputPath)" />
|
||||||
|
|
||||||
|
<!--Drop a nuspec file in artifacts for packing zip files into a nupkg-->
|
||||||
|
<Copy SourceFiles="$(RepositoryRoot)build\Microsoft.Internal.AspNetCore.PackageCache.nuspec" DestinationFolder="ArtifactsDir" Condition="'$(OSPlatform)' == 'Windows'" />
|
||||||
|
<WriteLinesToFile File="$(ArtifactsDir)version.txt" Lines="$(VersionSuffix)" Overwrite="true" Condition="'$(OSPlatform)' == 'Windows'" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
Loading…
Reference in New Issue