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

A problem with Xamarin.Forms plug-in and Code Compilation with .NET Framwork 4.5

$
0
0

Hello, I just started with Xamarin studio.
I would use Xamarin.forms to create an Android app (on windows) and iOS mac; beacause I don't have Visual Studio.

I installed all the files without problème (xamarin studio, GTK, android SDK, jdk) and now I start the development for Cross plateform (with the good tutorial : Hello, Xamarin.Forms).

I have a first problem :
Xamarin Version : 5.9.5 (build 9) and .NET Framework 4.5 (x86 / x64) and I have the "Android package options"

When the project open, I have a problem with the install plugin Xamarian.Forms
The Soft show a window with :

" Added file 'Xamarin.Forms.1.3.3.6323.nupkg' to folder 'Xamarin.Forms.1.3.3.6323'.
Successfully installed 'Xamarin.Forms 1.3.3.6323'.
Adding 'Xamarin.Forms 1.3.3.6323' to test1.
Could not install package 'Xamarin.Forms 1.3.3.6323'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."

There is definitely something I'm doing wrong but what?

After I have the same error when I try to compil :
For the Xamarin.Forms plugin :
"D:\projets\test2\test1\test1\test1.cs(7,7): Error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (test1)

D:\projets\test2\test1\test1\test1.cs(21,21): Error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (test1)"

And for the .NET 4.5 :
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(5,5): Warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5,Profile=Profile78" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644) (test1)

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(5,5): Warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644) (test1)

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(5,5): Warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. (MSB3270) (test1)"

Thanks in advance for your help.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>