Skip to content

Commit 186187f

Browse files
committed
Attempt to auto-publish vs.redist packages to orchestrated feed
1 parent 2604ce9 commit 186187f

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<ArtifactsBinDir>$(ArtifactsConfigurationDir)bin\</ArtifactsBinDir>
2222
<PackageOutputPath>$(ArtifactsDir)build\</PackageOutputPath>
2323

24+
<InstallersOutputPath>$(RepositoryRoot)artifacts/bin/$(Configuration)/installers/</InstallersOutputPath>
25+
2426
<RepoRelativeProjectDir>$([MSBuild]::MakeRelative($(RepositoryRoot), $(MSBuildProjectDirectory)))</RepoRelativeProjectDir>
2527

2628
<IsBenchmarkProject Condition="$(MSBuildProjectName.EndsWith('.Performance')) OR $(RepoRelativeProjectDir.Contains('perf'))">true</IsBenchmarkProject>
@@ -42,6 +44,11 @@
4244
<MvcTestingTargets>$(MSBuildThisFileDirectory)src\Mvc\Mvc.Testing\src\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Testing.targets</MvcTestingTargets>
4345
</PropertyGroup>
4446

47+
<PropertyGroup>
48+
<!-- Publishing.targets & SharedFramework.wixproj both use this property, so putting it here in a common location -->
49+
<SharedFrameworkRedistPackageId>VS.Redist.Common.AspNetCore.SharedFramework</SharedFrameworkRedistPackageId>
50+
</PropertyGroup>
51+
4552
<Import Project="eng\Dependencies.props" />
4653
<Import Project="eng\PatchConfig.props" />
4754
<Import Project="eng\ProjectReferences.props" />

build/Publish.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@
174174
<PackageToPublish Include="%(_SymbolsPackageArtifactInfo.ArtifactPath)" Category="symbols" IsSymbolsPackage="true" />
175175
</ItemGroup>
176176

177+
<ItemGroup>
178+
<RedistPackageToPublish Include="$(InstallersOutputPath)(SharedFrameworkRedistPackageId)*" />
179+
</ItemGroup>
180+
177181
<ItemGroup>
178182
<_MissingArtifactFile Include="@(FilesToPublish)" Condition="!Exists(%(FilesToPublish.Identity))" />
179183
<_MissingArtifactFile Include="@(NpmPackageToPublish)" Condition="!Exists(%(NpmPackageToPublish.Identity))" />
@@ -276,6 +280,10 @@
276280
ManifestArtifactData="NonShipping=true"
277281
Condition="'%(PackageToPublish.Category)' != 'ship'" />
278282

283+
<PackageToPublishToTransport
284+
Include="@(RedistPackageToPublish)"
285+
ManifestArtifactData="NonShipping=true" />
286+
279287
<FilesToPublishToTransport Include="@(NpmPackageToPublish)"
280288
RelativeBlobPath="$(BlobFileRelativePathBase)%(NpmPackageToPublish.RelativeBlobPath)"
281289
ManifestArtifactData="%(NpmPackageToPublish.ManifestArtifactData)" />

korebuild-lock.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version:2.1.7-build-20190110.2
2-
commithash:00aefcfd284db33352f35bfa2c74c65f8580e372
2+
commithash:00aefcfd284db33352f35bfa2c74c65f8580e372

src/Installers/Windows/GenerateNugetPackageWithMsi.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ param(
1111
[Parameter(Mandatory=$true)][string]$PackageVersion,
1212
[Parameter(Mandatory=$true)][string]$RepoRoot,
1313
[Parameter(Mandatory=$true)][string]$MajorVersion,
14-
[Parameter(Mandatory=$true)][string]$MinorVersion
14+
[Parameter(Mandatory=$true)][string]$MinorVersion,
15+
[Parameter(Mandatory=$true)][string]$PackageId
1516
)
1617

1718
$NuGetDir = Join-Path $RepoRoot "obj\Tools\nuget\$Name\$Architecture"
@@ -27,5 +28,5 @@ if (-not (Test-Path $NuGetExe)) {
2728
wget https://dist.nuget.org/win-x86-commandline/v3.5.0/nuget.exe -OutFile $NuGetExe
2829
}
2930

30-
& $NuGetExe pack $NuspecFile -Version $PackageVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties ASPNETCORE_RUNTIME_MSI=$MsiPath`;ASPNETCORE_CAB_FILE=$CabPath`;ARCH=$Architecture`;MAJOR=$MajorVersion`;MINOR=$MinorVersion`;
31+
& $NuGetExe pack $NuspecFile -Version $PackageVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties ASPNETCORE_RUNTIME_MSI=$MsiPath`;ASPNETCORE_CAB_FILE=$CabPath`;ARCH=$Architecture`;MAJOR=$MajorVersion`;MINOR=$MinorVersion`;ID=$PackageId`;
3132
Exit $LastExitCode

src/Installers/Windows/SharedFramework/SharedFramework.wixproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<DefineConstants>$(DefineConstants);AspNetCoreSharedFrameworkSource=$(HarvestSource)</DefineConstants>
1919
<NamespaceGuid>$(SharedFrameworkNamespaceGuid)</NamespaceGuid>
2020
<ToolsetInstallerNuspecFile>$(RepositoryRoot)\src\Installers\Windows\SharedFramework\SharedFrameworkPackage.nuspec</ToolsetInstallerNuspecFile>
21-
<InstallersOutputPath>$(RepositoryRoot)artifacts/bin/$(Configuration)/installers/</InstallersOutputPath>
2221
</PropertyGroup>
2322

2423
<ItemGroup>
@@ -64,7 +63,8 @@
6463
'$(PackageVersion)' ^
6564
'$(RepositoryRoot)' ^
6665
'$(AspNetCoreMajorVersion)' ^
67-
'$(AspNetCoreMinorVersion)'" />
66+
'$(AspNetCoreMinorVersion)' ^
67+
'$(SharedFrameworkRedistPackageId)'" />
6868
</Target>
6969

7070
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />

src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
4-
<id>VS.Redist.Common.AspNetCore.SharedFramework.$ARCH$.$MAJOR$.$MINOR$</id>
4+
<id>$ID$.$ARCH$.$MAJOR$.$MINOR$</id>
55
<version>1.0.0</version>
6-
<title>VS.Redist.Common.AspNetCore.SharedFramework.$ARCH$.$MAJOR$.$MINOR$</title>
6+
<title>$ID$.$ARCH$.$MAJOR$.$MINOR$</title>
77
<authors>Microsoft</authors>
88
<owners>Microsoft</owners>
99
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>

0 commit comments

Comments
 (0)