遵循以下菜单顺序:
文件->新建->项目-> 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找不到
发布评论