portable-class-library

Generate SHA1 Hash in Portable Class Library

。_饼干妹妹 提交于 2019-12-19 05:10:36
问题 I'm trying to build a portable class library that generates OAuth urls for other classes/applications to use. This class library using OAuth has to be a portable class library so it can work with different versions of a DropBox API I'm building. Part of this class needs to generate an SHA1 hash to generate the oauth_signature with. I'm aware that portable class library doesn't support System.Security.Cryptography, so is there anyway that this class can generate an SHA1 hash without that class

Portable Class Library ICommand compilation error in WPF — Not sure how to resolve this appropriately?

半城伤御伤魂 提交于 2019-12-19 03:17:03
问题 Some background information: I am using VS 2013 I created a Portable Class Library (Targets: .NET 4.5/Silverlight 5/Win Phone 8/Win Store 8) I implemented the ICommand interface in my class named MyCommand . MyCommand.cs: public class MyCommand : ICommand { public bool CanExecute(object parameter) { throw new NotImplementedException(); } public void Execute(object parameter) { throw new NotImplementedException(); } public event EventHandler CanExecuteChanged; } I found that when I attempted

Xamarin Studio Mac, Portable class library, Async and Android

浪子不回头ぞ 提交于 2019-12-18 18:38:05
问题 Edit: On the Alpha Channel Profile7, Profile49 and Profile78 seem to work. I'm working with the setup that was described here: Getting PCL, Mvvmcross, Nuget and Xamarin Studio to play "nice" on Mac . How do you make a PCL in Xamarin Studio with Async support work. I'm usually using Profile104 which is TargetFrameworkVersion v4.0 I tried the following combinations of the hree different v4.5 profiles Profile7, Profile49, Profile78 with the different versions of Xamarin Studio: Profile7 Profile

Why can't I reference System.Net.Sockets in a Portable Class Library using Xamarin?

*爱你&永不变心* 提交于 2019-12-18 16:40:08
问题 I am trying to use System.Net.Sockets API in a portable class library so that my projects can reuse code for socket connections. But I cannot reference that namespace in my code. As I understand it, PCLs limit you to assemblies that are available on all targeted platforms. But I am targeting ios, Android, and .Net 4.5 (using Xamarin), and all of these should have the system.dll assembly that contains the API. What am I missing? 回答1: As it is right now, there is no PCL profile targeting only

Is it possible to use a Portable Class Library that references System.Net in MonoDroid?

孤街醉人 提交于 2019-12-18 15:37:06
问题 Following from How can I build a targetting pack for Portable Class Libraries? and the advice in http://jpobst.blogspot.com/2012/04/mono-for-android-portable-libraries-in.html I've managed to build some monodroid example programs which use Portable Class Libraries. However, if any of my input PCLs reference the System.Net assembly, then monodroid fails to package my apk - because it complains about File Not Found for System.Net.dll. As I understand it (from http://docs.xamarin.com/android

Is it possible to use a Portable Class Library that references System.Net in MonoDroid?

大憨熊 提交于 2019-12-18 15:35:12
问题 Following from How can I build a targetting pack for Portable Class Libraries? and the advice in http://jpobst.blogspot.com/2012/04/mono-for-android-portable-libraries-in.html I've managed to build some monodroid example programs which use Portable Class Libraries. However, if any of my input PCLs reference the System.Net assembly, then monodroid fails to package my apk - because it complains about File Not Found for System.Net.dll. As I understand it (from http://docs.xamarin.com/android

Unable to resolve assemblies that use Portable Class Libraries

不羁的心 提交于 2019-12-18 04:02:34
问题 I'm having a problem with assembly resolution on an end-user machine and I believe it's related to using Portable Class Libraries.... I have a .NET 4.0 application that was originally written in Visual Studio 2010. Recently we upgraded to Visual Studio 2012 and we've created a few projects that are Portable Class Libraries. I don't believe we need these features now, but we're also building a Windows 8 Store application that might benefit from these libraries. When I compile my project, what

Unable to resolve assemblies that use Portable Class Libraries

蓝咒 提交于 2019-12-18 04:02:06
问题 I'm having a problem with assembly resolution on an end-user machine and I believe it's related to using Portable Class Libraries.... I have a .NET 4.0 application that was originally written in Visual Studio 2010. Recently we upgraded to Visual Studio 2012 and we've created a few projects that are Portable Class Libraries. I don't believe we need these features now, but we're also building a Windows 8 Store application that might benefit from these libraries. When I compile my project, what

Update UI thread from portable class library

荒凉一梦 提交于 2019-12-18 02:49:53
问题 I have an MVVM Cross application running on Windows Phone 8 which I recently ported across to using Portable Class Libraries. The view models are within the portable class library and one of them exposes a property which enables and disables a PerformanceProgressBar from the Silverlight for WP toolkit through data binding. When the user presses a button a RelayCommand kicks off a background process which sets the property to true which should enable the progress bar and does the background

Why doesn't String class implement IEnumerable<char> in portable library?

删除回忆录丶 提交于 2019-12-17 19:35:19
问题 I've created a PCL project that targets .NET Framework 4 and Silverlight 5 (I use an extension for Visual Studio 2010, not portable project template from Visual Studio 2012, if that matters). I am trying to reverse a string using System.Linq.Enumerable.Reverse<TSource>() extension method, but it doesn't work because compiler thinks that System.String doesn't implement IEnumerable<char> . 回答1: The Portable Class Libraries must restrict itself to the classes and methods that are available on