으로 변환 할 수 없습니다. netstandard1.6에 대해 nuget 패키지를 빌드하는 .NET 핵심 클래스 라이브러리가 있습니다. Azure 함수에서이 라이브러리를 사용하고 싶습니다. 홈 \ 데이터 \ 기능 \ \ 패키지 \ nuget 시스템 \ : 그 D gues 나는Netstandard Nuget System.Net.Http에서 GAC 버전
using System.Net.Http;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
return MyClassLib.Methode(req);
}
error CS1503: Argument 1: cannot convert from 'System.Net.Http.HttpRequestMessage [D:\home\data\Functions\packages\nuget\System.Net.Http\4.1.0\ref\net46\System.Net.Http.dll]' to 'System.Net.Http.HttpRequestMessage [D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll]'
으로 클래스 라이브러리 내부의 메소드를 호출 할 때하지만,이 오류를 받고 있어요 .Net.Http \ 4.1.0 \ 심판 \ net46 \ System.Net.Http.dll는 DLL 오는 양식은 "종속"입니다 : { "NETStandard.Library": "1.6.0" },
System.Net에서 비슷한 문제를 발견했습니다 .Http : https://github.com/dotnet/corefx/issues/9846 그리고 내가 읽은 내용 :
.0 "System.Net.Http"에 고정되어 있지 패키지예 : "4.1.0- *" https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/managing-package-dependency-versions
은 내가 System.Net 때문에 1.2 netstandard 다운 그레이드해야한다. HTTP 버전? 하지만 나는 net46을 더 이상 지원할 수 없다 : https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md
netstandard와 net46 사이에 불일치가 있습니까?
net46은 netstandard에서 지원하는 플랫폼입니다. netstandard를 1.3으로 다운 그레이드하지만 여전히 같은 오류입니다. – Thieme