portable-class-library

Portable Class Library (PCL) Contrib - Cryptography

China☆狼群 提交于 2019-12-04 12:33:05
问题 I want to use the cryptography in the Portable Class Library Contrib project on codeplex but have not found any documentation on how I can use it. I want to create a wrapper class with Encrypt and Decrypt methods inside it and I want this wrapper class to exist in a portable class library. I have referenced Portable.Runtime and Portable.Security.Cryptography in this project. Is this correct? I then want to use my wrapper inside a .NET, Windows Phone and Metro project. In these projects I

setup of xamarin studio to work with PCL & MVVMCross

若如初见. 提交于 2019-12-04 11:50:27
问题 I really enjoy Xamarin Studio and I'm looking for a template solution to start developing a cross devices application with MvvmCross. But I can't find how to set a project to work with PCL and MvvmCross with Xamarin Studio. If anyone can give me a link where I can find a tutorial to make it, it would be awesome. I would be very pleased to contribute to this community by giving my feedback and providing some tutorial about how to start using Xamarin Studio, PCL MvvmCross and get rid of Visual

How come there's no IKernel implementation in Ninject.Portable

老子叫甜甜 提交于 2019-12-04 08:41:06
I use and fancy Ninject alot. I wonder why there is no "BasicKernel" in Ninject.Portable? Is implementing IKernel require any call that PCLs don't contain? I'm talking about simple scenario (about: Bind<If1>().To<Class1>() and Get<If1>() )? The PCL version of Ninject is split into two libraries, Ninject.dll and Ninject.Common.dll as some of the code is platform-specific. Ninject cannot exist without its platform code. In order to use Ninject, you need to add the Portable.Ninject Nuget to both your portable library and to your main app/exe. Adding the package into the main app/exe is what

How can I build a targetting pack for Portable Class Libraries?

做~自己de王妃 提交于 2019-12-04 08:18:23
I'm building some code with these portable class libraries at present. I'm looking to target full .Net, WinRT Metro, Windows Phone, ... and then MonoTouch and MonoDroid. My experiments today show this can work - http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html However, I have hit a fairly significant problem - MonoTouch and MonoDroid currently support these libraries in that you can consume PCLs as binary assemblies, but they don't allow linking between project files e.g. I can reference MyLib.dll from a MonoDroid project, but I can't reference MyLib.csproj. This is a

Error creating NuGet package for Portable Class Library

岁酱吖の 提交于 2019-12-04 07:19:26
I'm new to Nuget and I'm trying to create a NuGet package for a Portable Class Library project that has a package dependency on another portable class library I've created. I'm running into an issue where I'm receiving an error when calling nuget pack for the project file TestComponent2.csproj (I created this from the Portable for Universal Apps template in VS 2013). This library has a dependency on a nuget package created from another PCL called TestComponent1 . The package created never seems to contain this dependency (the console output even says "Dependencies: None"). However it is in the

Portable Class Library Profile 78 missing attribute related methods/properties

坚强是说给别人听的谎言 提交于 2019-12-04 05:45:01
In my PCL core project (WP8, Android, iOS, Xamarin, MvvmCross) I use custom attributes. The Type.GetCustomAttributes() extension method lets me examine the attributes used. Using PCL Profile104 this works well. But because I want to use async/await, I'll need to use PCL Profile78 (and .NET 4.5) Problem: Seems the GetCustomAttributes() and the Attributes property are not available in Profile78. Why?? Note: I am looking into the workaround by creating a PCL Profile 104 class library and wrapping the GetCustomAttributes() and then referencing this library from my PCL Profile78 library. However it

Assembly.GetCallingAssembly isn't supported on WinRT, but is for portable class libraries?

别来无恙 提交于 2019-12-04 04:36:39
I'm needing to get some meta-data about the assembly which calls my component. As such, using Assembly.GetCallingAssembly() seems to be a natural fit. However, I've found it works everywhere except for in Windows Store. Where it's supported: Phone 7.0+ .Net 1.0+ Portable Class Libraries However, where it's not supported is directly within a Windows Store application. I can make a portable class library and then call it from there inside of a Windows Store application, but I can't just put it directly in the Windows Store app/class library. Is there a workaround for this or some other way to

How should I create a library targetting .NET Framework 4.5.1 and .NET Standard 1.3 in VS 2017 RC?

我只是一个虾纸丫 提交于 2019-12-04 04:10:35
问题 This is my first time trying anything that targets more than just a .NET Framework. I can't seem to do it from the GUI. I've tried project type 'Class Library (Portable)' and project type 'Class Library (.NET Standard)'. I can change a 'Class Library (Portable)' to target .NET Standard but then I can't select anything else. I'm not sure if I should try to change the .csproj of 'Class Library (.NET Standard)' or the project.json of 'Class Library (Portable)', I just want whatever is most

How to work with Portable Class Library and EF Code-first?

我的梦境 提交于 2019-12-04 03:08:52
I'm doing an Windows Phone app where I have a WebApi running in Azure. I'm using the new "Portable Class Library" (http://msdn.microsoft.com/en-us/library/gg597391.aspx) for my "Models" project which is of cause shared between my WebApi project (this is a normale ASp.NET MVC 4 project) and my Windows Phone project. This works great and the model (POCO) classes are serialized and deserialized just as I want. Now I want to start storing some of my Models/POCO objects and would like to use EF Code-first for that, but that's kind of a problem as I can't add the EntityFramework assembly to my

Is System.Security.Cryptography namespace supported by the Portable Class Library

限于喜欢 提交于 2019-12-04 03:04:59
I am converting an existing multi-target Silverlight/.NET project to a Portable Class Library project in order to reduce the number of projects that are required to support multiple Microsoft platforms. I have an error in one class that is using the System.Security.Cryptography namespace The type or namespace name 'Cryptography' does not exist in the namespace 'System.Security' (are you missing an assembly reference?) This namespace is available in Silverlight and I am wondering why the Portable Class Library does not support it? One reason could be that this behaviour is by design: any