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 개의 분리 된 문제가있다.
거기 없어요. 그것은 문제의 일부입니다. Visual Studio 나 프로젝트는 비어있는 곳의 bin \ BPC \ Debug \ ... \이 아니라'bin \ Debug \ ... \'파일을 찾고 있어야합니다. –