代码之家  ›  专栏  ›  技术社区  ›  Grigory

您的项目没有引用“.NETPortable,版本=v4.5,概要文件=Profile78”

  •  11
  • Grigory  · 技术社区  · 7 年前

    在构建PCL项目时,我收到以下错误:

    Microsoft.NuGet.targets(186, 5): [null] Your project is not referencing the ".NETPortable,Version=v4.5,Profile=Profile78" framework. Add a reference to ".NETPortable,Version=v4.5,Profile=Profile78" in the "frameworks" section of your project.json, and then re-run NuGet restore.

    1 回复  |  直到 7 年前
        1
  •  24
  •   Grigory    7 年前

    如果有,则会出现以下错误。netstandard项目在同一目录中,并构建一次。 它离开了。json文件位于 Obj 目录,它将中断PCL项目生成。

    移动netstandard。csproj退出此目录并删除 Bin Obj公司 目录。