Visual studio 2015 VS2015生成无效的.NET核心代码

Visual studio 2015 VS2015生成无效的.NET核心代码,visual-studio-2015,.net-core,Visual Studio 2015,.net Core,我的环境: VS 2015,新安装,更新3(14.0.25431.01) Windows 10,最新更新 已安装的.NET Core 1.0.3 SDK(LTS)、.NET Core 1.1 SDK(当前版)及其运行时 VS 2015工具预览2(.NET Core) 没有再竖琴 我的网络信息 C:\Users\Ben>dotnet --info .NET Command Line Tools (1.0.0-preview2-1-003177) Product Information

我的环境:

  • VS 2015,新安装,更新3(14.0.25431.01)
  • Windows 10,最新更新
  • 已安装的.NET Core 1.0.3 SDK(LTS)、.NET Core 1.1 SDK(当前版)及其运行时
  • VS 2015工具预览2(.NET Core)
  • 没有再竖琴

我的网络信息

C:\Users\Ben>dotnet --info
.NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information:
 Version:            1.0.0-preview2-1-003177
 Commit SHA-1 hash:  a2df9c2576

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64

为什么VS 2015认为,这里的构建很好?它不能被编译。 CLI工作正常:

PM> dotnet build **/project.json
Project VS2015NetCore (.NETCoreApp,Version=v1.1) will be compiled because expected outputs are missing
Compiling VS2015NetCore for .NETCoreApp,Version=v1.1
dotnet : C:\Program Files\dotnet\dotnet.exe compile-csc @C:\Users\Ben\documents\visual studio 
2015\Projects\VS2015NetCore\src\VS2015NetCore\obj\Debug\netcoreapp1.1\dotnet-compile.rsp returned Exit Code 1
At line:1 char:1
+ dotnet build **/project.json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Program File...ned Exit Code 1:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

C:\Users\Ben\documents\visual studio 2015\Projects\VS2015NetCore\src\VS2015NetCore\Program.cs(7,28): error CS0246: The type or namespace name 'ThisClassDoesNotExist' could not 
be found (are you missing a using directive or an assembly reference?)

我认为这是一个普遍问题。但是为什么呢?然后呢

如果我修复了该错误,则会从CLI中获得一个常规非0错误:


关于dotnet cli repo,导致错误0x80008081。

重新安装我的计算机。现在它起作用了。
通常的windows问题解决方案…

它会给您一个非0的退出代码,并且底部有一个错误。@Carcigenicate那么您确认这是一个常见的行为吗?我不这么认为。我不是说这是正常的行为,我是说我不认为这是真的。它似乎抛出了一个错误。