Error for .NETStandard1.6 PCL: “Your project is not referencing the ”.NETPlatform,Version=v5.0“ framework”

巧了我就是萌 提交于 2019-12-05 11:48:12

For VS2015 at the very end of the .csproj file, add:

<PropertyGroup>
    <NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker>
</PropertyGroup>

I had the same error, I added the following in my project.json

"frameworks": {
            "netstandard1.4": {
                "imports": "portable-net45+win8+wpa81+wp8"
            }
            "netplatform50": {}
  }

This worked for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!