2017-05-01 1 views
0

Contoso University과 함께 따르고 있는데 in this SO question과 같은 HP 컴퓨터 플랫폼 문제로 인해 특정 폴더에 deps.json이 존재하지 않는다는 스 캐 폴딩 생성 오류가 발생합니다. .MVC 스캐 폴딩 오류, deps.json이 존재하지 않습니다.

저는 Windows 7 Professional을 실행 중이며 Visual Studio 2017 Community를 사용하고 있습니다.

명령 프롬프트에서 을 사용하여 내 환경 변수, 플랫폼을 BPC에서 아무 것도 변경하지 않았습니다. 난 비주얼 스튜디오 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 폴더에 파일을 복사하는 것이 가장 좋은 해결책은 아니지만 해결 방법이라고 생각합니다.

편집 한

나는 환경 변수, 플랫폼이 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)' 

편집 2

다시 BCP에 플랫폼 변수를 설정 : 나는 발판을 만들려고 할 때

지금 나는이 오류가 발생합니다.

...\ContosoUniversity\bin\Debug\netcoreapp1.1\에서 ...\ContosoUniversity\bin\BCP\Debug\netcoreapp1.1\으로 모든 파일을 복사하여 붙여 넣으면 오류가 발생하지만 편집 1의 오류가 다시 발생합니다.

나는 2 개의 분리 된 문제가있다.

답변

1

내가 그래서, 내 원래의 문제를 해결하기 위해 내 Value cannot be null. Parameter name: connectionString 오류

을 일으키는 그건 내가 '의'

"ConnectionString" 대신 "ConnectionStrings"했다

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 \ BPC \ Debug \ ... \이 아니라'bin \ Debug \ ... \'파일을 찾고 있어야합니다. –