Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your project is not referencing the ".NETPortable,Version=v4.5,Profile=Profile78"

When i build my PCL project i received the following error:

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.

like image 227
Grigory Avatar asked May 10 '18 16:05

Grigory


1 Answers

Following error appears when you have .netstandard project in same directory and build it once. It leaves .json files in Obj directory and it breaks PCL project build.

Move .netstandard .csproj out of this directory and remove Bin and Obj directories.

like image 178
Grigory Avatar answered Dec 21 '22 02:12

Grigory