title: How to solve xbuild '.NETPortable,Version=v4.0,Profile=Profile344' issue on Linux
body: <p>I tried to compile <a href="https://github.com/ziyasal/InfluxDB.Net">my project</a> with following instructions so I get following error.</p>
  
  <p>My script;</p>
  
  <pre><code>sudo apt-get install mono-complete  
  mozroots --import --sync 
  mkdir gthb  
  cd gthb/  
  git clone https://github.com/ziyasal/InfluxDB.Net.git
  cd InfluxDB.Net/   
  mono .nuget/NuGet.exe install NUnit.Runners 
  mono .nuget/NuGet.exe restore InfluxDB.Net.sln 
  xbuild
  </code></pre>
  
  <p>Output;</p>
  
  <p>XBuild Engine Version 12.0
  Mono, Version 3.2.8.0
  Copyright (C) 2005-2013 Various Mono authors</p>
  
  <p>Build started 01/06/2015 18:31:01.</p>
  
  <hr>
  
  <p>Project "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln" (default target(s)):
          Target ValidateSolutionConfiguration:
                  Building solution configuration "Debug|Any CPU".
          Target Build:
                  Project "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj" (default target(s)):
                          Target RestorePackages:
                                  Executing: mono --runtime=v4.0.30319 "/home/ziyasal/gthb/InfluxDB.Net/.nuget/NuGet.exe" install "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/packages.config" -source 
  ""   -RequireConsent -solutionDir "/home/ziyasal/gthb/InfluxDB.Net/"
                                  Restoring NuGet packages...
                                  To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download 
  missing packages'.
                          Target PrepareForBuild:
                                  Configuration: Debug Platform: AnyCPU
                                  Created directory "bin/Debug/"
                                  Created directory "obj/Debug/"
                          Target GetReferenceAssemblyPaths:
  /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets:  warning : Unable to find framework corresponding to the target framework moniker '.NETPortable,Version=v4.0,Profile=Profile344'. Framework ass
  embly references will be resolved from the GAC, which might not be the intended behavior.
  /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets: error : PCL Reference Assemblies not installed.
                          Task "GetReferenceAssemblyPaths" execution -- FAILED
                          Done building target "GetReferenceAssemblyPaths" in project "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj".-- FAILED
                  Done building project "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj".-- FAILED
          Task "MSBuild" execution -- FAILED
          Done building target "Build" in project "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln".-- FAILED
  Done building project "/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln".-- FAILED</p>
  
  <p>Build FAILED.</p>
  
  <p>Warnings:</p>
  
  <p>/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln (default targets) ->
  (Build target) ->
  /home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj (default targets) ->
  /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets (GetReferenceAssemblyPaths target) -></p>
  
  <pre><code>    /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets:  warning : Unable to find framework corresponding to the target framework moniker '.NETPortable,Version=v4.0,Profile=Profile344'. Frame
  </code></pre>
  
  <p>work assembly references will be resolved from the GAC, which might not be the intended behavior.</p>
  
  <p>Errors:</p>
  
  <p>/home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net.sln (default targets) ->
  (Build target) ->
  /home/ziyasal/gthb/InfluxDB.Net/InfluxDB.Net/InfluxDB.Net.csproj (default targets) ->
  /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets (GetReferenceAssemblyPaths target) -></p>
  
  <pre><code>    /usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets: error : PCL Reference Assemblies not installed.
  
       1 Warning(s)
       1 Error(s)
  </code></pre>
  
  <p>Time Elapsed 00:00:03.8459340</p>