2016-12-20 21 views
0

IBM bluemixでASP.NET Coreクラウドファウンドリアプリケーションを作成しましたが正常です。ASP.NET Core Bluemixサンプル+ VS 2015アップデート3

PATH=.\node_modules.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git 
C:\Program Files\dotnet\dotnet.exe restore "C:\Users\c8\Downloads\HelloWorld(1).vs\restore.dg" 
log : Restoring packages for C:\Users\c8\Downloads\HelloWorld(1)\src\dotnetstarter\project.json... 
error: Unable to resolve 'Microsoft.Extensions.Configuration.CommandLine (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'. 
log : Writing lock file to disk. Path: C:\Users\c8\Downloads\HelloWorld(1)\src\dotnetstarter\project.lock.json 
Errors in C:\Users\c836774\Downloads\HelloWorld(1)\src\dotnetstarter\dotnetstarter.xproj 
Unable to resolve 'Microsoft.Extensions.Configuration.CommandLine (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'. 
log : C:\Users\c8\Downloads\HelloWorld (1)\src\dotnetstarter\dotnetstarter.xproj 
log : Restore failed in 966ms. 

更新:

追加project.jsonの設定の詳細:私はダウンロードして、VS 2015のアップデート3で構築しようとする。しかし、私はそれゆえ、次のエラーを取得したパッケージを復元することはできませんよ

{ 
    "buienter code hereldOptions": { 
     "copyToOutput": { 
      "include": [ "wwwroot" ] 
     }, 
     "debugType": "portable", 
     "emitEntryPoint": true, 
     "preserveCompilationContext": true 
    }, 

    "publishOptions": { 
     "include": [ "wwwroot" ], 
     "exclude": [ "**.user", "**.vspscc" ] 
    }, 

    "dependencies": { 
    "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", 
    "Microsoft.AspNetCore.StaticFiles": "1.0.0", 
    "Microsoft.Extensions.Configuration.CommandLine": "1.0.0", 
    "Microsoft.NETCore.App": { 
     "type": "platform", 
     "version": "1.0.1" 
    } 
    }, 

    "frameworks": { 
     "netcoreapp1.0": { 
      "imports": [ 
       "portable-net45+wp80+win8+wpa81+dnxcore50" 
      ] 
     } 
    }, 

    "scripts": { }, 

    "version": "1.0.0" 
} 
+0

インストールした.NET Core SDKのバージョンは何ですか?また、質問自体に少なくともproject.jsonファイルを含めて、将来の読者が質問のプロジェクトのコードを確認できるようにしてください。 –

+0

.NET Core 1.0.1コアSDKを使用しています –

+0

プロジェクトフォルダで 'dotnet restore'をコマンドラインから実行するだけで問題はありますか? –

答えて

0

しかし、私のnuget.configを次のように変更すると、問題を解決するのに役立ちました。

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <packageSources> 
    <!--To inherit the global NuGet package sources remove the <clear/> line below --> 
    <clear /> 
    <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> 
    <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" /> 
    </packageSources> 
</configuration> 
関連する問題