.net Core错误记录

检测到包降级

打开Nuget,找到对应的包,Microsoft.NetCore.App 此时提示‘已被SDK隐式引用,若要更新该包,请更新所属的SDK’

啥鸟意思???

不管,直接解决,首先,安装对应的sdk版本。sdk下载链接集合 ,请认准版本号+-download.md,的链接,比如1.0.7-download.md。包含其它字符的链接都不是你想的那个版本.

然后,用记事本打开项目的工程文件(xxx.csproj)修改对应的版本属性,我这里是RuntimeFrameworkVersion 1.0.4=>1.0.5

<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>

猜你喜欢

转载自www.cnblogs.com/joeymary/p/9500886.html