portable-class-library

TPL on PCL for MvvmCross for PCL Profile 78

微笑、不失礼 提交于 2020-01-13 10:54:08
问题 Trying to use PCL for mvvmcross with TPL by Profile 78 (regarding question TPL on PCL of mvvmcross) On iOS project it's working, but NOT for android . here the Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.Perhaps it doesn't exist in the Mono for Android profile? File name: 'System.Runtime.dll' at Xamarin.Android.Tuner.DirectoryAssemblyResolve So, does

How do I add a reference to F# Portable Library from C# Portable Class Library (PCL)

﹥>﹥吖頭↗ 提交于 2020-01-13 07:36:27
问题 I have a project which contains two F# projects and a C# project in which I'd like to write some XUnit tests: FS_PL: F# 3.1 (3.3.1.0) Portable Library FS_PL_Legacy: F# 31. (2.3.5.1) Portable Library (Legacy) Tests: C# .NET 4.5/Win8 C# Portable Class Library (PCL) I am unable to add a reference from Tests to either of the F# libraries. When I try to add a reference to FS_PL, I am presented with a dialog that states "Unable to add a reference to project 'FS_PL'. The targets of Portable Library

Is Reactive Extensions 2.1 PCL compatible with Xamarin?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 05:54:06
问题 Riddle me this: Can the new PCL version of Reactive Extensions be made to work with Xamarin? If so, how? 回答1: Nope. But check out https://github.com/mono/rx/tree/rx-oss-v2.1/Rx/NET/Source/Rx_Xamarin for versions that do work. 回答2: Yes it is possible. At the moment, you will need to switch to the beta channel of the Xamarin tools which implement Mono 3.0. This can be done via Tools > Options > Xamarin in Visual Studio 2012. Xamarin.Android 4.7 Information Xamarin.iOS 6.3 Information The

Unable to access localized resources in .NET 4.5 PCL from Windows Phone 8.1

你。 提交于 2020-01-13 04:47:07
问题 I have troubles accessing localized string resources in Portable Class Library targeting .NET 4.5. I am allowing the user to select the language on first page and have localized experience on further pages. I am trying to achieve that just by getting resource with code MyTextBloxk.Text = PasswordResetMethod_Page.Title; PasswordResetMethod_Page is the auto-generated class from the .resx Everything works fine on the WP 8.1 emulator, but when I try to deploy it to the real device I get Error :

Microsoft.Threading.Tasks.Extensions in Xamarin Mono projects

亡梦爱人 提交于 2020-01-11 11:53:55
问题 I have built a NuGet package for my Simple.OData.Client with support for Xamarin Android and iOS. This library uses Microsoft.Bcl.Async. Tests using Android and iOS simulator went OK, but when I install this new NuGet package into another project, it fails to compile Droid/Touch projects with the following message: C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(720,2): error : Exception while loading assemblies: System.IO.FileNotFoundException: Could not load

Detect Universal App at Runtime in PCL

旧时模样 提交于 2020-01-06 16:53:13
问题 Is there any way to detect that a main application is a Universal App (W10) from a Portable Class Library? Thanks 回答1: Out-of-the-box I do not think the functionality you are asking for is available in PCL, but here is a suggestion involving reflection that you might want to try. It is adapted to the PCL Profile (328) you are using, involving .NET 4 and Silverlight 5. The GetPlatformName method needs to be somewhat adjusted if you want to for example switch to PCL profiles 111 and 259, since

HttpClient Portable returns 404 notfound on WP8

一世执手 提交于 2020-01-06 03:17:12
问题 I'm porting a W8 application that uses httpclient library to connect to our server. The main purpose of the application is to send images, but when I try to send pictures on my WP8 I got a 404 not found error (seems that Microsoft remapped to 404 a lot of errors), if i check the server logs, I can see that the server recevied about 1/4 of the image before failling. The same function seems to works fine in my W8 application (didn't tested on 3G), and works on WP8 if I use Wifi connection. I

Which .Net Standard version supports which Android versions?

假装没事ソ 提交于 2020-01-04 09:40:46
问题 I want to convert a Xamarin PCL project to .Net Standard. My question is, what versions of Android will that support? My current project supports Android 4. Will .Net Standard be able to support it? Does it depend on the .Net Standard version? I've seen this table but it only tells me the "Xamarin" version supported, and I don't understand the connection between that and the Android version. Is .Net Standard unrelated to the Android version (somewhat like the C# version is separate from the

Xamarin “GenerateResourceDesigner” task failed unexpectedly and .dll file could not be found

最后都变了- 提交于 2020-01-04 04:31:28
问题 Hi I'm running a Xamarin PCL project thats deploying to all platforms including UWP windows 10 and windows 8. I've just merged a branch on git and resolved some conflicts (not very well clearly) and i'm getting a few errors. The first error: The "GenerateResourceDesigner" task failed unexpectedly. System.IO.FileNotFoundException: Could not load assembly 'Vigour, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Vigour.dll' at

Xamarin “GenerateResourceDesigner” task failed unexpectedly and .dll file could not be found

六眼飞鱼酱① 提交于 2020-01-04 04:31:05
问题 Hi I'm running a Xamarin PCL project thats deploying to all platforms including UWP windows 10 and windows 8. I've just merged a branch on git and resolved some conflicts (not very well clearly) and i'm getting a few errors. The first error: The "GenerateResourceDesigner" task failed unexpectedly. System.IO.FileNotFoundException: Could not load assembly 'Vigour, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Vigour.dll' at