.net Core錯誤記錄

檢測到包降級

打開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>
相關文章
相關標籤/搜索