New PCL project not based on Mac / Xamarin studio

We are trying to build our projects, which was not a problem until today.

We got a solution with several projects, including Portable Class Library (PCL) projects. We successfully created them before, but our Macbook lost the ability to create these projects.

I get a total of 31 build errors for each PCL project:

- The predefined type 'System.Object' is not defined or imported (CS0518) - The predefined type 'System.ValueType' is not defined or imported (CS0518) - The predefined type 'System.Attribute' is not defined or imported (CS0518) - 28 more times the same error stating other basic classes like Int16, Int32, Double, Single, etc. 

To make sure this always happens, I created a new solution with a new PCL project. I tried to compile this, and I had the same errors there. After checking the links, I see that they are all red.

I am using Xamarin Studio 4.0.10, but I also tried it in MonoDevelop. And without success.

I can just create a project in the VS + Xamarin.iOS plugin and click it on mac, and it just starts. But, based on the Mac itself, it no longer works.

Additional, possibly related information:

  • We used to develop a Mac. After expanding the monotouch license, we downloaded the Xamarin.iOS plugin and continued development on a computer running Windows.
  • After the license renewal, we also received new updates for monotouch and Xamarin
  • We have not built directly on the Mac since the license was renewed.
  • We decided to build it directly on the Mac today because we were unable to run the application on the device itself from Visual Studio.

Any possible solutions are welcome.

+4
source share
2 answers

This is a bug in the current version (3.2.0)

You can:

  • use Visual Studio to create your PCL projects or
  • Switch to alpha and upgrade to 3.2.1 alpha. Go to Xamarin Studio> Check for Updates> and install the update channel in Alpha. This includes a fix for 3.2.0, which I believe concerns a broken PCL

Update

Although the alpha assembly (3.2.1) is able to create a new PCL project, but all about that. For me, it cannot recognize many keywords and gives meaningless errors in my actual project. If I find a fix, I will post it here.

0
source

I installed assembly 3.2.1, it seems the PCL problem has been fixed, but I keep getting "Are there any links to the System.Xml.Linq assembly?" problem.

0
source

Source: https://habr.com/ru/post/1495311/


All Articles