Can ASP.NET 5 class library work with .NET 3.5?

I can easily create a vNext class library that compiles the source code of .NET 4.5 and ASP.NET Core. I can also create a target for PCL ( net40+sl50+wp80+win+wpa81+MonoAndroid10+MonoTouch10 ). The problem is that I would like my library to also target 3.5, but adding net35 to the "frameworks" list adds an entry to the links but expands, which shows that it actually imports .NET 4.5 assemblies, so the compiled result does not designed to target .NET 3.5, but instead 4.5 ...

Is it possible for the vNext class library to target .NET 3.5?

+5
source share
1 answer

Links displayed on VS2015 do show a link to .NET 4 enter image description here

But the created NuGet shows 3.5:
enter image description here
However, I could not verify that this really works when working on Windows with 3.5 installed.

+1
source

Source: https://habr.com/ru/post/1212341/


All Articles