Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

[Mac] Framework not installed: .NETPortable

$
0
0

I have spent the whole evening trying to create a simple cross-platform project and I can't find any solution.

I'm just trying to create a project by following the tutorial here:
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/introduction-to-xamarin-forms/

Platform: Mac OS X 10.9.3
Latest Xamarin Studio installed (5.0 build 878), with the Mac, iOS and Android updates.

So I follow the instructions in the tutorial, and they start like this (this is done in Xamarin Studio):
New solution > C# > Forms > Universal Xamarin.Forms project (PCL)

This creates the project. I called it "FormsTest".

Unfortunately this project has errors out of the box.

In the solution tree, under
FormsTest > FormsTest > References
the line for the .NET portable is in red. If I expand this line I can see:
Framework not installed: .NETPortable,Version=v4.5,Profile=Profile78

After lots of research, it looks like something is wrong with my installation.

If I right-click 'FormsTest > FormsTest" in the solution pane, then click on Options, then "Build > General" I get:
Current profile: PCL 4.5 - Profile 78 - not installed
I can click on this, but there is nothing else in the list. Just this option (which is "not installed").
Under this I can see "Target frameworks", but there is nothing below.

From what I have seen in the forums, this is abnormal. I should have several profiles in the "Current profile" list, and several choices under "Target framework".

So I believe my installation is incorrect.

I have deleted manually everything (I think) that is related to Xamarin Studio and its dependancies, and reinstalled everything from scratch. I say that I think I have deleted everything, because it's hard to tell where Xamarin installs stuffs. It's in several different places, and the installer will not just let you reinstall. If it finds that something is already there, the installer greys the option out, you cannot reinstall.

Anyway... I managed to reinstall everything (it's just that it took me more than 2 hours) and the error is still there, even with a new project, even after cleaning the project, restarting Xamarin Studio and restarting the Mac.

So apparently the .NET Portable library is not installed. From reading various forums I understand that I should NOT try to install it myself, because it must be installed by Xamarin. I guess it should be in
/Library/Frameworks/Mono.framework/External/xbuild-frameworks
but I have only two folders there:
MonoAndroid
MonoTouch

I have checked that I have added the WPToolKit and WPToolKitFx package from the official NuGet directory to my project, so it is probably not what I am missing here.

So now what?

I paste all the version info from Xamarin Studio below, just in case it helps:

=== Xamarin Studio ===

Version 5.0 (build 878)
Installation UUID: xxxxxxxxxxxxxxxxxxxx
Runtime:
Mono 3.4.0 ((no/c3fc3ba)
GTK+ 2.24.23 (Raleigh theme)

Package version: 304000204

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.iOS ===

Version: 7.2.3.39 (Indie Edition)
Hash: fc6f56b
Branch:
Build date: 2014-05-19 19:10:29-0400

=== Xamarin.Android ===

Version: 4.12.4 (Starter Edition)
Android SDK: /Users/ct/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0.3 (API level 15)
4.4 (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Build Information ===

Release ID: 500000878
Git revision: bcd66920d963483e7d638a2339c4022fe035b529
Build date: 2014-05-27 17:36:26-04
Xamarin addins: da9064ce55b0fa90930a7c437a4cc1ae0e5c778c

=== Operating System ===

Mac OS X 10.9.3
Darwin Mac-Pro.local 13.2.0 Darwin Kernel Version 13.2.0
Thu Apr 17 23:03:13 PDT 2014
root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64


Viewing all articles
Browse latest Browse all 58056

Trending Articles