简体   繁体   中英

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?

The references displayed on VS2015 show indeed a link to .NET 4 在此输入图像描述

But the generated NuGet shows 3.5 :
在此输入图像描述
However I was not able to test of this really works when running on Windows with only 3.5 installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM