diff --git a/WrapGod.Abstractions/WrapGod.Abstractions.csproj b/WrapGod.Abstractions/WrapGod.Abstractions.csproj index cc74fea..1ca99b3 100644 --- a/WrapGod.Abstractions/WrapGod.Abstractions.csproj +++ b/WrapGod.Abstractions/WrapGod.Abstractions.csproj @@ -5,7 +5,7 @@ - + diff --git a/WrapGod.Cli/WrapGod.Cli.csproj b/WrapGod.Cli/WrapGod.Cli.csproj index 079488e..46ceb99 100644 --- a/WrapGod.Cli/WrapGod.Cli.csproj +++ b/WrapGod.Cli/WrapGod.Cli.csproj @@ -12,7 +12,7 @@ - + diff --git a/WrapGod.Extractor/NuGetPackageResolver.cs b/WrapGod.Extractor/NuGetPackageResolver.cs index 0f925a3..21263e4 100644 --- a/WrapGod.Extractor/NuGetPackageResolver.cs +++ b/WrapGod.Extractor/NuGetPackageResolver.cs @@ -98,6 +98,11 @@ private static async Task DownloadAndExtractAsync( var cache = new SourceCacheContext(); var repository = Repository.Factory.GetCoreV3(sourceFeed); var resource = await repository.GetResourceAsync(cancellationToken); + if (resource is null) + { + throw new InvalidOperationException( + $"Failed to obtain a package resource from feed '{sourceFeed}'."); + } var nugetVersion = new NuGetVersion(version); diff --git a/WrapGod.Extractor/WrapGod.Extractor.csproj b/WrapGod.Extractor/WrapGod.Extractor.csproj index 686ccba..1fa2d34 100644 --- a/WrapGod.Extractor/WrapGod.Extractor.csproj +++ b/WrapGod.Extractor/WrapGod.Extractor.csproj @@ -2,9 +2,9 @@ - - - + + + diff --git a/WrapGod.Generator/WrapGod.Generator.csproj b/WrapGod.Generator/WrapGod.Generator.csproj index 52866dc..952b430 100644 --- a/WrapGod.Generator/WrapGod.Generator.csproj +++ b/WrapGod.Generator/WrapGod.Generator.csproj @@ -8,7 +8,7 @@ - + diff --git a/WrapGod.Manifest/WrapGod.Manifest.csproj b/WrapGod.Manifest/WrapGod.Manifest.csproj index 9ffe0b4..562709f 100644 --- a/WrapGod.Manifest/WrapGod.Manifest.csproj +++ b/WrapGod.Manifest/WrapGod.Manifest.csproj @@ -10,7 +10,7 @@ - + diff --git a/WrapGod.Migration.Engine/WrapGod.Migration.Engine.csproj b/WrapGod.Migration.Engine/WrapGod.Migration.Engine.csproj index 527767d..617a5e1 100644 --- a/WrapGod.Migration.Engine/WrapGod.Migration.Engine.csproj +++ b/WrapGod.Migration.Engine/WrapGod.Migration.Engine.csproj @@ -6,7 +6,7 @@ - + diff --git a/WrapGod.Tests/WrapGod.Tests.csproj b/WrapGod.Tests/WrapGod.Tests.csproj index 7182af0..e008fd3 100644 --- a/WrapGod.Tests/WrapGod.Tests.csproj +++ b/WrapGod.Tests/WrapGod.Tests.csproj @@ -16,11 +16,11 @@ - - - + + + - +