.net-standard

Html to Pdf library in Azure Function

人走茶凉 提交于 2020-01-02 19:29:10
问题 Azure functions apparently doesn't yet support System.Drawing (sanbox info). Running a function with a dependency on it throws the following message: System.Drawing is not supported on this platform. I was originally using Select.HtmlToPdf in a WebApp to create PDF documents from HTML. But, since moving the PDF generation to an Azure function, that is no longer an option. Also, the reccomended library is wkhtmltopdf , but that doesn't seem to have a .netstandard2.0 version. How would you

How to Configure Network Tracing Dotnet core for HttpClient calls?

人走茶凉 提交于 2020-01-02 09:29:15
问题 As per reference document at https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing We can setup this in web.config or any other configuration file and we get detailed system.net traces, packets traces for HttpClient calls and any kind of issue in HttpClient calls can be captured in traces, be it certificate, TLS or anything else. However, do we have similar implementation for dotnet core / standard which can be used in both web app or console

As of Visual Studio 2017 15.5.1, How Does One Create a Xamarin.Forms Project to Target Minimum Android KitKat (API 19) with PCL now obsolete?

丶灬走出姿态 提交于 2020-01-01 10:05:32
问题 I want to know how to create a Xamarin.Forms Project that targets minimum version of Android Kitkat (API 19), without using the Shared Project option. .Net Standard Library is not an option since the minimum supported Android version is Nougat. A large percentage of my target users (more than 40%) still uses phones with an Android version lower than Nougat. In Visual Studio 15.5.1 or greater, no PCL option is provided under the Code Sharing Strategy Section in creating a new Xamarin.Forms

NET Standard vs Net Core App: when creating .NET Core Project (using console or class library)

那年仲夏 提交于 2019-12-30 06:06:44
问题 I am trying to develop my projects to be cross platform. I have created several class libraries in this way: But, when I was using Entity Framework to scaffold my DB, the nuget packages needed didn't install except when used in Console application. Here is the difference, the console app references the .NET Core: And the Class library references NET Standard: So why they are both under .NET Core but referencing different libraries? Are both of them Cross Platform or only the console which is

NET Standard vs Net Core App: when creating .NET Core Project (using console or class library)

被刻印的时光 ゝ 提交于 2019-12-30 06:05:34
问题 I am trying to develop my projects to be cross platform. I have created several class libraries in this way: But, when I was using Entity Framework to scaffold my DB, the nuget packages needed didn't install except when used in Console application. Here is the difference, the console app references the .NET Core: And the Class library references NET Standard: So why they are both under .NET Core but referencing different libraries? Are both of them Cross Platform or only the console which is

Could not load file or assembly 'System.Private.CoreLib…'

岁酱吖の 提交于 2019-12-28 19:28:20
问题 I have a Xamarin.Forms app which targets .net standard 1.4. On the UWP app which has minimum version 14393 (and targets 16299) I get the following exception from the Microsoft Store (though on my computer it runs fine even from the appxbundle file): Note the main points: The error occurs on Xamarin.Forms.Forms.Init(e); in OnLaunched . The error itself is Could not load file or assembly 'System.Private.CoreLib...' . System.IO.FileNotFoundException: Could not load file or assembly 'System

Why does my .NET Standard NuGet package trigger so many dependencies?

假如想象 提交于 2019-12-27 17:05:29
问题 I've been mucking about with a .NET Standard project and NuGet. I've got a working project and have uploaded it to NuGet.org. My project targets .NET Standard 1.3, which should support .NET Framework 4.6 and .NET Core 1.0. But when I tried to add my project (via NuGet) to a fresh .NET Framework 4.6 project, the dependencies resolved to 47 packages! They're all system libraries and appear to be dependencies of either Microsoft.NETCore.Platforms or NETStandard.Library 1.6.1. (Gist of full PM

Why does my .NET Standard NuGet package trigger so many dependencies?

拜拜、爱过 提交于 2019-12-27 17:04:17
问题 I've been mucking about with a .NET Standard project and NuGet. I've got a working project and have uploaded it to NuGet.org. My project targets .NET Standard 1.3, which should support .NET Framework 4.6 and .NET Core 1.0. But when I tried to add my project (via NuGet) to a fresh .NET Framework 4.6 project, the dependencies resolved to 47 packages! They're all system libraries and appear to be dependencies of either Microsoft.NETCore.Platforms or NETStandard.Library 1.6.1. (Gist of full PM

Why does my .NET Standard NuGet package trigger so many dependencies?

余生长醉 提交于 2019-12-27 17:04:10
问题 I've been mucking about with a .NET Standard project and NuGet. I've got a working project and have uploaded it to NuGet.org. My project targets .NET Standard 1.3, which should support .NET Framework 4.6 and .NET Core 1.0. But when I tried to add my project (via NuGet) to a fresh .NET Framework 4.6 project, the dependencies resolved to 47 packages! They're all system libraries and appear to be dependencies of either Microsoft.NETCore.Platforms or NETStandard.Library 1.6.1. (Gist of full PM

Trying to resolve dependencies: Changing .NET Standard Library to NET Core - Microsoft.Extensions.Primitives

醉酒当歌 提交于 2019-12-25 07:50:03
问题 I am running Visual Studio 2015 Update 3. I am trying to use Redis Cache for .Net core applications. Since, the developed package is targeting .Net Standard Library. I downloaded the code from github and trying to change the dependecies my self. Here are the projects: First, I am trying to chage the Abstractions Class Library to target . Net Core , then i tried to add the Microsoft.Extensions.Primitives , Since the version 1 does not support .NET Core. I added the final pre package: Install