HttpContext in .net standard library

前端 未结 7 544
南旧
南旧 2020-12-09 08:02

I am working on couple of projects one of which is an ASP.NET 4.5 application and other one is .Net Core API 1.1 project. The asp.net application i

7条回答
  •  抹茶落季
    2020-12-09 08:46

    I agree with the answer above you want to keep netstandard libraries simple and free of web requests if possible. There is a System.Net.Http nuget package that targets .net standard. This could be used when updating 4.6.x up for full framework and for .net core if you are creating a library and do not want the overhead of asp.net core.

提交回复
热议问题