刚刚将VS2015(更新3)更新到2.0.1版本的.NET Core工具。如果我这样做: File-> New Project-> .NET Core-> ASP.NET Core Web Application(.NET Core) 然后选择“清空”项目,我会在程序包恢复阶段开始时看到错误(确实有219个错误),并且整个project.json文件都有红色波形。更复杂的模板情况更糟,所以要么是严重破坏了,要么是我做错了。我希望后者,但任何人都可以确认这个简单的过程适合他们吗?
编辑:下面的几个Package Manager错误:
PATH=.\node_modules\.bin;E:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;E:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
C:\Program Files\dotnet\dotnet.exe restore "E:\MikeP\Documents\Visual Studio 2015\Projects\WebApplication3\.vs\restore.dg"
log : Restoring packages for E:\MikeP\Documents\Visual Studio 2015\Projects\WebApplication3\src\WebApplication3\project.json...
log : Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in E:\MikeP\Documents\Visual Studio 2015\Projects\WebApplication3\src\WebApplication3\project.json...
error: Package Microsoft.AspNetCore.Server.IISIntegration.Tools 1.0.0-preview2-final is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.AspNetCore.Server.IISIntegration.Tools 1.0.0-preview2-final supports: netcoreapp1.0 (.NETCoreApp,Version=v1.0)
error: Package Microsoft.Extensions.CommandLineUtils 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Extensions.CommandLineUtils 1.0.0 supports:
error: - net451 (.NETFramework,Version=v4.5.1)
error: - netstandard1.3 (.NETStandard,Version=v1.3)
error: Package System.Diagnostics.Process 4.1.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package System.Diagnostics.Process 4.1.0 supports:
error: - monoandroid10 (MonoAndroid,Version=v1.0)
error: - monotouch10 (MonoTouch,Version=v1.0)
error: - netstandard1.3 (.NETStandard,Version=v1.3)
error: - netstandard1.4 (.NETStandard,Version=v1.4)