portable-class-library

NuGet package from PCL

廉价感情. 提交于 2021-02-20 03:42:26
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

NuGet package from PCL

流过昼夜 提交于 2021-02-20 03:40:38
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

NuGet package from PCL

拜拜、爱过 提交于 2021-02-20 03:40:26
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

NuGet package from PCL

别来无恙 提交于 2021-02-20 03:39:12
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

Add Portable Class Library (in DLL form) to Xamarin Studio

荒凉一梦 提交于 2021-02-07 05:43:15
问题 I have built a Portable Class Library with Visual Studio 2012 that will also build in Xamarin Studio. I would like to add the DLL built from that PCL (from the bin directory of the solution) to an existing (Android app) project in Xamarin Studio 5.3. I notice that according to documentation from Xamarin, this is generally possible. For example, from this page: The output from a PCL (ie. the resulting assembly DLL) can also be added as a reference to most projects. This makes PCL an ideal way

HttpClient.GetStreamAsync() with custom request?

旧巷老猫 提交于 2020-06-16 07:25:23
问题 My goal is to use the HttpClient class to make a web-request so that I can write the response to a file (after parsing). Therefore I need the result as a Stream . HttpClient.GetStreamAsync() only takes the string requestUri as parameter. So there is no possibility to create a request with custom HttpRequestHeader , custom HttpMethod , custom ContentType , custom content and so on? I saw that HttpWebRequest is sometimes used instead, but in my PCL (Profile111) there is no Add method for the

Why can't my PCL use System.Runtime?

北城余情 提交于 2020-02-02 16:37:47
问题 I have a PCL that targets the following platforms: .NET Framework 4.5 Windows 8 Windows Phone 8.1 I need to add a reference to System.Runtime because I want to use another package that depends on it. From what I can see, version 4.0.0 appears to include the target platforms mentioned above. However, when I try installing it via NuGet, I get this stack trace: PM> Install-Package System.Runtime -Version 4.0.0 # ... Install failed. Rolling back... Package 'System.Runtime 4.0.0' does not exist in

Why can't my PCL use System.Runtime?

依然范特西╮ 提交于 2020-02-02 16:32:57
问题 I have a PCL that targets the following platforms: .NET Framework 4.5 Windows 8 Windows Phone 8.1 I need to add a reference to System.Runtime because I want to use another package that depends on it. From what I can see, version 4.0.0 appears to include the target platforms mentioned above. However, when I try installing it via NuGet, I get this stack trace: PM> Install-Package System.Runtime -Version 4.0.0 # ... Install failed. Rolling back... Package 'System.Runtime 4.0.0' does not exist in