Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

exception on retry for missing package. #237

@paulgmiller

Description

@paulgmiller

If you get a missing package on a build. The go shove said package into the feed. then rebuild you'll get a InvalidOperationException.

We're on Seing if I should upgrade that. Git clean from root mitigates it but it painful.

msbuild /v:m
Microsoft (R) Build Engine version 15.6.85.37198 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Restore CBT modules:
MSBUILD : error : NU1102: Unable to find package System.Security.Principal.Windows with version (>= 4.5.0-preview2-26406-04)
MSBUILD : error : - Found 6 version(s) in NugetMirror [ Nearest version: 4.4.1 ]
MSBUILD : error : - Found 4 version(s) in OSS_All [ Nearest version: 4.4.1 ]
MSBUILD : error : - Found 1 version(s) in Bing [ Nearest version: 4.5.0-preview1-26216-02 ]

MSBUILD : error : Errors in E:\src\aether2\src\aether\platform\backendV2\shared\Microsoft.Aether.BackendCommon\Microsoft.Aether.BackendCommon.csproj
MSBUILD : error : NU1102: Unable to find package System.Security.Principal.Windows with version (>= 4.5.0-preview2-26406-04)
MSBUILD : error : - Found 6 version(s) in NugetMirror [ Nearest version: 4.4.1 ]
MSBUILD : error : - Found 4 version(s) in OSS_All [ Nearest version: 4.4.1 ]
E:\src\aether2.build\CBT\build.props(96,5): error CBT.NuGet.1000: NuGet packages were not restored and the build cannot continue. Refer to other errors for more information. [E:\src\aether2\src\aether\platform\backendV2\shared\Microsoft.Aether.BackendCommon\Microsoft.Aether.BackendCommon.csproj]

11:18:22 E:\src\aether2\src\aether\platform\backendV2\shared\Microsoft.Aether.BackendCommon

msbuild /v:m
Microsoft (R) Build Engine version 15.6.85.37198 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error : System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Sequence contains no matching element
MSBUILD : error : at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
MSBUILD : error : at CBT.NuGet.Internal.NuGetPackageReferenceProjectParser.TryGetPackages(String packageConfigPath, PackageRestoreData packageRestoreData, IEnumerable`1& packages)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions