Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can ASP.NET 5 class library target .NET 3.5?

I can easily create a vNext class library that compiles the source to .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 in the references but expanding that shows that it actually imports .NET 4.5 assemblies so the compiled result is not targeting .NET 3.5 but instead 4.5...

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

like image 908
Knaģis Avatar asked Nov 09 '22 19:11

Knaģis


1 Answers

The references displayed on VS2015 show indeed a link to .NET 4 enter image description here

But the generated NuGet shows 3.5 :
enter image description here
However I was not able to test of this really works when running on Windows with only 3.5 installed.

like image 131
Stef Heyenrath Avatar answered Nov 15 '22 05:11

Stef Heyenrath