打开Nuget,找到对应的包,Microsoft.NetCore.App 此时提示‘已被SDK隐式引用,若要更新该包,请更新所属的SDK’git
啥鸟意思???github
无论,直接解决,首先,安装对应的sdk版本。sdk下载连接集合 ,请认准版本号+-download.md,的连接,好比1.0.7-download.md。包含其它字符的连接都不是你想的那个版本.app
而后,用记事本打开项目的工程文件(xxx.csproj)修改对应的版本属性,我这里是RuntimeFrameworkVersion 1.0.4=>1.0.5code
<PropertyGroup> <TargetFramework>netcoreapp1.0</TargetFramework> <PreserveCompilationContext>true</PreserveCompilationContext> <AssemblyName>Fonour.MVC</AssemblyName> <OutputType>Exe</OutputType> <PackageId>Fonour.MVC</PackageId> <RuntimeIdentifiers>win10-x64</RuntimeIdentifiers> <RuntimeFrameworkVersion>1.0.5</RuntimeFrameworkVersion> <PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback> </PropertyGroup>