Errors when trying to use netstandard with Xamarin forms
<p>So I've been trying to make a project that will use netstandard class libraries common code however I have been unsuccessful as I keep running into errors. I have been following the post here <a href="https://oren.codes/2016/07/09/using-xamarin-forms-with-net-standard/" rel="nofollow">https://oren.codes/2016/07/09/using-xamarin-forms-with-net-standard/</a> and <a href="https://xamarinhelp.com/dot-net-standard-pcl-xamarin-forms/" rel="nofollow">https://xamarinhelp.com/dot-net-standard-pcl-xamarin-forms/</a> on how to do it. His sample I can download and run fine but when I try replicate it with his instructions I run into the error </p>

<blockquote>
  <p>Your project is not referencing the ".NETPortable,Version=v4.5,Profile=Profile111" framework. Add a reference to ".NETPortable,Version=v4.5,Profile=Profile111" in the "frameworks" section of your project.json, and then re-run NuGet restore.  FixMyCity.Mobile    C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets  140 </p>
</blockquote>

<p>Which I know it sounds obvious; just add <code>.NETPortable,Version=v4.5,Profile=Profile111</code> in the frameworks section of project.json but then I get this error (80% certain it's caused by adding it in since it's not there otherwise) </p>

<blockquote>
  <p>Packages containing MSBuild targets and props files cannot be fully installed in projects targeting multiple frameworks. The MSBuild targets and props files have been ignored.   ...project.nuget.targets    </p>
</blockquote>

<p>Also when I look at the sample project, he does not target <code>.NETPortable,Version=v4.5,Profile=Profile111</code> and it works fine</p>

<p>This is the closest I've gotten with it so far if you would like to take a look: <a href="https://github.com/Toxicable/XamarinFormsNetstandardIssue" rel="nofollow">https://github.com/Toxicable/XamarinFormsNetstandardIssue</a><br>
It's just the template project (Xamrin forms protalble) with the steps below applied  </p>

<ol>
<li>Run `PM> Uninstall-Package xamarin.forms -Force -RemoveDependencies on each project; IOS and Andriod first PCL last.  </li>
<li>Restart VS as prompted by console  </li>
<li>Add in <code>project.json</code> to each project as below</li>
<li>Try build but well it wont</li>
</ol>

<p><strong>PCL project.json</strong></p>

<pre><code>{
  "supports": {},
  "dependencies": {
    "Xamarin.Forms": "2.3.0.107",
    "NETStandard.Library": "1.6.0"
  },
  "frameworks": {
    "netstandard1.1": {
      "imports": "portable-net45+win8+wpa81+wp8"
    },
    ".NETPortable,Version=v4.5,Profile=Profile111": {}
  }
}
</code></pre>

<p><strong>project.Driod project.json</strong></p>

<pre><code>{
  "dependencies": {
  },
  "frameworks": {
    "MonoAndroid,Version=v6.0": {
    }
  },
  "runtimes": {
    "win": {}
  }
}
</code></pre>

<p><strong>project.iOS project.json</strong></p>

<pre><code>{
  "dependencies": {
  },
  "frameworks": {
    "Xamarin.iOS,Version=v1.0": {
    }
  },
  "runtimes": {
    "win": {}
  }
}
</code></pre>