.deps.json找不到 [英] .deps.json could not be found

查看:47
本文介绍了.deps.json找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循以下菜单顺序:

文件->新建->项目-> ASP> .NET核心Web应用程序(.Net Framework)

File -> New -> Project -> ASP>NET Core Web Application (.Net Framework)

构建->构建解决方案

出现此错误:

错误C:\ Users \ Sam \ Documents \ Visual Studio 2015 \ Projects \ RC2 Test \ src \ RC2 Test \ error CS2001:源文件'C:\ Users \ Sam \ Documents \ Visual Studio 2015 \ Projects \ RC2 Test找不到\ src \ RC2 Test \ Test.deps.json'.RC2测试C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ DotNet \ Microsoft.DotNet.Common.Targets 241

Error C:\Users\Sam\Documents\Visual Studio 2015\Projects\RC2 Test\src\RC2 Test\error CS2001: Source file 'C:\Users\Sam\Documents\Visual Studio 2015\Projects\RC2 Test\src\RC2 Test\Test.deps.json' could not be found. RC2 Test C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 241

搜索test.deps不会发现任何结果.

Searching for test.deps finds nothing.

测试"是单元测试项目的硬编码名称吗?
dotnet --version表示1.0.0.0-preview1-002702

Is "test" a hardcoded name for a unit test project?
dotnet --version says 1.0.0.0-preview1-002702

我重复了上述步骤,但是这次我选择了核心Web应用程序(.Net Core).我遇到同样的错误.

I repeated the above steps but this time I selected Core Web Application (.Net Core). I get the same error.

好像我们不能在项目名称中使用空格.

Looks like we cant use spaces in project names.

推荐答案

我遇到了同样的问题,但是我创建了一个名称为"MyprojectWithoutSpaces"的项目,问题不再存在.我想是RC版本中的问题

I have the same issue, but I created a project with name "MyprojectWithoutSpaces" and the issue is gone. I suppose is a problem in the RC version

这篇关于.deps.json找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆