HttpContext in .net standard library

There’s a problem to your approach: .NET Standard is the most bare-bones implementation of .NET available, meaning that only basic features which are platform- and scenario-agnostic are implemented. HttpContext exists on both the .NET Framework and .NET Core (both of which implement .NET Standard, by the way), but being specific to the Web, it does … Read more

Using .net standard 1.5 lib in .net 4.6.2 misses System.Runtime 4.1.0.0

I’ve added a repo that shows you how to do this. From the README.md: Requirements Generally speaking, using libraries targeting .NET Standard in an application targeting .NET Framework requires the application project to include a NuGet reference for .NET Standard (NETStandard.Library). This ensures that the right set of assemblies are included with the application. In … Read more

Installing a .NetStandard 2.0 Nuget package into a VS2015 Net 4.6.1 project

Referencing .NET Standard 2.0 packages is supported using the following: NuGet 3.6.0 or higher for VS 2015 (from NuGet’s download site – may not yet be listed as recommended latest) Install the “.NET Standard Support for Visual Studio 2015” from https://aka.ms/netstandard-build-support-netfx (NuGet in VS will also print a link to this in its output window). … Read more

.NET Standard vs .NET Core

I will try to further clarify your doubts and extend Jon Skeet answer. .NET Standard is a specification, so a library compiled for a specific .NET Standard version can be used in different .NET Standard implementations. As said in my other comment, a good analogy for the relationship between .NET Standard and other .NET Standard … Read more

Disable transitive project reference in .NET Standard 2

Transitive project references (ProjectReference) Transitive project references are new feature of SDK-style csproj (1,2) format used in .NET Core/.NET >= 5. You can also use this csproj for old .NET Framework projects (1,2,3) but with some exceptions. In this SDK-style format project references (represented by <ProjectReference> entry in .csproj file) are transitive. This is different … Read more

Convert .NET Standard class library to native aar/jar

Update: The name changed to “.NET Embedding” and it is at v0.4 at the time of this update. https://developer.xamarin.com/releases/dotnetembedding/dotnetembedding_0/dotnetembedding_0.4/ New instructions: Installing .NET Embedding Original post: You can use Mono’s Embeddinator-4000 It supports various language consumers, so it surfaces .NET code as idiomatic code in the target language. This is the list of supported languages … Read more

Azure Function gives error: System.Drawing is not supported on this platform

It’s not about the CLR, it’s about the sandbox. System.Drawing relies heavily on GDI/GDI+ to do its thing. Because of the somewhat risky nature of those APIs (large attack surface) they are restricted in the App Service sandbox. Win32k.sys (User32/GDI32) Restrictions For the sake of radical attack surface area reduction, the sandbox prevents almost all … Read more