Fix errors produced when only some packages in a repo are building in a servicing update
In servicing builds, we may not produce all packages. This fixes errors produced about missing packages. * Skip packages listed in NuGetPackageVerifier.json which cannot be found. * Detect when shared sources packages are not building
This commit is contained in:
Родитель
979736d4d4
Коммит
0de485caed
|
@ -69,7 +69,7 @@
|
|||
<NormalizedPackageVersion Condition="$(NormalizedPackageVersion.Contains('+'))">$(PackageVersion.Substring(0, $(PackageVersion.IndexOf('+'))))</NormalizedPackageVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ItemGroup Condition=" '$(IsPackable)' == 'true' ">
|
||||
<ArtifactInfo Include="$(PackageOutputPath)$(PackageId).$(NormalizedPackageVersion).nupkg">
|
||||
<ArtifactType>NuGetPackage</ArtifactType>
|
||||
<PackageId>$(PackageId)</PackageId>
|
||||
|
|
|
@ -174,8 +174,7 @@ namespace NuGetPackageVerifier
|
|||
var packagesWithId = packages.Where(p => p.Key.Id.Equals(packageId));
|
||||
if (!packagesWithId.Any())
|
||||
{
|
||||
logger.LogError("Couldn't find package '{0}' in the repo", packageId);
|
||||
totalErrors++;
|
||||
logger.LogInfo("Couldn't find package '{0}' in the repo. Skipping.", packageId);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
2
test.ps1
2
test.ps1
|
@ -1,5 +1,5 @@
|
|||
#requires -version 4
|
||||
[CmdletBinding(PositionalBinding = $true)]
|
||||
[CmdletBinding(PositionalBinding = $false)]
|
||||
param(
|
||||
[Parameter()]
|
||||
[string]$Command = 'default-build',
|
||||
|
|
Загрузка…
Ссылка в новой задаче