CommonBuildToolset / CBT.Modules

Modules for CBT
MIT License
9 stars 5 forks source link

exception on retry for missing package. #237

Open paulgmiller opened 6 years ago

paulgmiller commented 6 years ago

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)

paulgmiller commented 6 years ago

Moving up to 2.1.35 didn't help. Same error. System.InvalidOperationException: Sequence contains no matching element MSBUILD : error : at System.Linq.Enumerable.First[TSource]

paulgmiller commented 6 years ago

Oh and doing a git clean on just the dir get you Missing expected NuGet assets file 'E:\src\ aether2\src\aether\platform\backendV2\shared\Microsoft.Aether.BackendCommon\project.assets.json'.