2017-01-04 15 views
2

githubからAzureに自分のWebサイトを展開しようとしていますが、しようとするたびにエラーが表示されています。これはAzureのログの一部です:パッケージのバージョン ""を見つけることができません

Command: "D:\home\site\deployments\tools\deploy.cmd" 
Handling ASP.NET Core Web Application deployment with MSBuild. 
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin'. 
Restoring NuGet package Microsoft.Extensions.Caching.Abstractions.1.0.0. 
Restoring NuGet package Microsoft.Extensions.Caching.Memory.1.0.0. 
Restoring NuGet package Microsoft.Extensions.DependencyInjection.1.0.0. 
WARNING: Unable to find version '1.0.0' of package 'Microsoft.Extensions.Caching.Abstractions'. 
    D:\home\.nuget: Package 'Microsoft.Extensions.Caching.Abstractions.1.0.0' is not found on source 'D:\home\.nuget'. 
    https://api.nuget.org/v3/index.json: Could not find file 'D:\home\.nuget\microsoft.extensions.caching.abstractions\1.0.0\microsoft.extensions.caching.abstractions.1.0.0.nupkg'. 

これは、私が持っているNugetパッケージの多くのためのものです。

Restoring packages for D:\home\site\repository\src\LIGMarine\project.json... 
Restoring packages for tool 'BundlerMinifier.Core' in D:\home\site\repository\src\LIGMarine\project.json... 
Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in D:\home\site\repository\src\LIGMarine\project.json... 
Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in D:\home\site\repository\src\LIGMarine\project.json... 
Committing restore... 
Writing lock file to disk. Path: D:\home\site\repository\src\LIGMarine\project.lock.json 
D:\home\site\repository\src\LIGMarine\LIGMarine.xproj 
Restore completed in 5151ms. 

をそしてエラーメッセージが来る:

は、警告メッセージの後に、この他のメッセージが示されている。これは、Azureのログの履歴書である

Errors in packages.config projects 
    Unable to find version '1.0.0' of package 'Microsoft.Extensions.Caching.Abstractions'. 
     D:\home\.nuget: Package 'Microsoft.Extensions.Caching.Abstractions.1.0.0' is not found on source 'D:\home\.nuget'. 
     https://api.nuget.org/v3/index.json: Could not find file 'D:\home\.nuget\microsoft.extensions.caching.abstractions\1.0.0\microsoft.extensions.caching.abstractions.1.0.0.nupkg'. 

Feeds used: 
    D:\home\.nuget 
     D:\home\.nuget: Package 'System.Interactive.Async.3.0.0' is not found on source 'D:\home\.nuget'. 
     https://api.nuget.org/v3/index.json: Could not find file 'D:\home\.nuget\system.interactive.async\3.0.0\system.interactive.async.3.0.0.nupkg' 

を、私は約読んだことがありますこのエラーと画像に表示されるNuget.Configファイルを作成しました。このファイルはSolution Itemsフォルダ内にありますenter image description here

私はNuget.Configファイル内に持っているコード:このメッセージによると、Nugetパッケージが見つからない

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <packageRestore> 
    <add key="enabled" value="True" /> 
    <add key="automatic" value="True" /> 
    </packageRestore> 
    <packageSources> 
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> 
    </packageSources> 
    <disabledPackageSources /> 
    <activePackageSource> 
    <add key="All" value="(Aggregate source)" /> 
    </activePackageSource> 
</configuration> 

は...たぶん

Feeds used: 
    D:\home\.nuget 
     D:\home\.nuget: Package 'System.Interactive.Async.3.0.0' is not found on source 'D:\home\.nuget'. 
     https://api.nuget.org/v3/index.json: Could not find file 'D:\home\.nuget\system.interactive.async\3.0.0\system.interactive.async.3.0.0.nupkg' 

それはパッケージのそれが必要な方法を探していない、I 'D:\home\.nuget\'

どうすればいいですか?

Microsoft.Extensions.Caching.Abstractions 
Microsoft.Extensions.Caching.Memory 
Microsoft.Extensions.DependencyInjection 
System.Interactive.Async 
System.Linq 
System.Linq.Expressions 
System.Linq.Queryable 
System.Globalization 
System.Reflection 
System.ObjectModel 
System.Resources.ResourceManager 
System.Reflection.Extensions 
System.Runtime 
System.Runtime.Extensions 
System.Runtime.InteropServices 
Microsoft.Extensions.DependencyInjection.Abstractions 


System.Threading.Tasks 
System.Threading.Tasks.4.0.11 
Microsoft.Extensions.Logging.Abstractions 
Microsoft.Extensions.Logging.Abstractions.1.0.0 
Microsoft.Extensions.Logging 
Microsoft.Extensions.Options 
Microsoft.Extensions.Primitives 
Remotion.Linq 
Newtonsoft.Json 
System.Collections 
System.Collections.Immutable 
System.Diagnostics.Debug 
System.Diagnostics.DiagnosticSource 
System.Collections.Concurrent 
System.ComponentModel 
System.Threading 

:これらが発見されていないパッケージがある

EDIT 、私はこれらがhttps://api.nuget.org/v3/index.json以内に見つけることができないプライベートなパッケージとは思いません。今

+0

あなたは地元のnugetを無効にしようとしたことがありキャッシュ(-nocache)?また、-verbosity = detailedを設定すると、問題の診断に役立ちます – stibay

答えて

0

私はアズールでの新しいウェブサイトを作成しているし、今では動作しますが、それは以前のウェブサイトは、GitHubのから以前のアプリケーションを展開して、一部の競合があったと思われ、すべてが正常に動作し

関連する問題