我已经安装了Visual Studio 2015专业版,以及运行和调试.NET Core代码所需的软件包。这些软件包是:
Microsoft .NET Core 1.0.0 - SDK Preview 2 (x64) Microsoft .NET Core 1.0.0 - SDK Preview 2 (x86) Microsoft .NET Core 1.0.0 - VS 2015 Tooling Preview 2
当我尝试打开在Mac上开发的现有.NET Core应用程序时,在Visual Studio中会弹出以下错误提示框:
在
Microsoft .NET Core 1.0.0 - SDK Preview 2 (x64) Microsoft .NET Core 1.0.0 - SDK Preview 2 (x86) Microsoft .NET Core 1.0.0 - VS 2015 Tooling Preview 2
当我尝试打开在Mac上开发的现有.NET Core应用程序时,在Visual Studio中会弹出以下错误提示框:
![Visual Studio Failure Message](https://istack.dev59.com/ur5MH.webp)
cmd.exe
中运行dotnet --version
命令时,输出如下:1.0.0-preview2-003121
。
我是否缺少某个版本的东西?我已经看过一些其他帖子,建议确保DotNet CLI被卸载,以解决这种问题,但我没有安装它,并且仍然无法使Visual Studio正确还原包或构建.NET Core应用程序。
编辑:这里是project.json
的内容:
{
"version": "0.1.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
},
"System.IdentityModel.Tokens.Saml": "5.0.0-beta8-305061149",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel.Https": "1.0.0",
"Microsoft.Extensions.DependencyInjection": "1.0.0",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.0",
"AWSSDK.S3": "3.2.5-beta",
"System.Threading.Tasks.Extensions": "4.0.0"
},
"frameworks": {
"netcoreapp1.0": {}
}
}