2017-05-01 32 views
0

私はContoso Universityと一緒に従いましたが、特定のフォルダにdeps.jsonが存在しないと言って足場の作成エラーについてin this SO questionというHPコンピュータプラットフォームの問題を実行しています。MVC足場のエラー、deps.jsonが存在しません

私はWindows 7 Professionalを実行しており、Visual Studio 2017 Communityを使用しています。

コマンドプロンプトでを使用して、環境変数「プラットフォーム」をBPCから何も変更しませんでした。私は、私は、Visual Studio 2017を再起動し、洗浄液を清掃し、無駄に自分のコンピュータを再起動しようとしているRight Click on the Controllers folder > Add > New Scaffolding Item... > MVC Controller with views, Using Entity Framework > Fill out the form by picking a Model class and Data context class > Add >

Error 

There was an error running the selected code generator: 
'The specified deps.json [C:\...\bin\BPC\Debug\netcoreapp1.1\ContosoUniversity.deps.json] does not exists' 

しようとすると、

はまだ私はエラーを取得します。 このエラーを防止するために何をすべきかわかりません。助言がありますか?私はBPCフォルダにファイルをコピーするのが回避策だが、最善の解決策ではないと感じている。

編集1

私は、環境変数、プラットフォームは、BPCにリセットしまったことに気づいたので、私はそれを削除して、もう一度再起動。戻らなかった

今、私は足場を作成しようとすると、私はこのエラーを取得:

Error 

There was an error running the selected code generator: 
'Value cannot be null. 
Parameter name: connectionString 
    at 
Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b_6_0() 
    at 
Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) 
    at 
Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)' 

編集バックBCPにプラットフォームの変数を設定する2

手動で元のエラーを戻します。

...\ContosoUniversity\bin\Debug\netcoreapp1.1\から...\ContosoUniversity\bin\BCP\Debug\netcoreapp1.1\にすべてのファイルをコピーして貼り付けても、そのエラーは発生しますが、編集1のエラーが戻ってきます。

私には2つの別々の問題があります。

答えて

1

私は私の元の問題を解決するために、だから私のValue cannot be null. Parameter name: connectionStringエラー

を引き起こしていた「S」

との代わりに"ConnectionStrings""ConnectionString"を持っていた私はappsettings.json

にタイプミスをしたが判明Windows 7の場合は次の手順に従います(10はあまり違いはありません)。

Windows key > Right click on Computer > Properties > Advanced system settings > Environment Variables... > Under System variables find Platform > Highlight Platform > Delete > OK

0

.jsonファイルが指定されたパスに存在することを確認してください。あなたが見つけたものについて私に知らせてください。

+0

それはありません。それは問題の一部です。 Visual Studioまたはプロジェクトは、bin \ Debug \ ... \ 'が空の場所の' bin \ BPC \ Debug \ ... \ 'ではなく、' bin \ Debug \ ... \ 'にあります。 –

関連する問題