我是C#和.net核心的新手我尝试使用dotnet / cli安装软件包dotnet add package ...
,但我有以下错误
info : NotFound https://api.nuget.org/v3-flatcontainer/.../index.json 733m
s
error: Unable to resolve '...' for '.NETCoreApp,Version=v1.0.4'.
error: Package '...' is incompatible with 'all' frameworks in project 'C:\Us
ers\Mario\Documents\core_app\vega\Vega.csproj'.
在launch.json中有
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.0.4/Vega.dll",
这是.csproj的片段
<PropertyGroup>
<TargetFramework>netcoreapp1.0.4</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" />
</ItemGroup>
我应该安装最新版本的.net核心?