Please bear with me if I sound stupid since this is the first ever app I am working on .NET Core. I am working on an AWS Lambda project which is basically a .NET Core app. I have written core logic in a separate .NET Core Class library in the same solution
of which, the project.json showing following framework information:
"frameworks": {
"netstandard1.6": {
"imports": "dnxcore50"
}
All is good to this point. I can call this Core class library functions in AWS Core lambda project. But, further now; I have to call a legacy ASMX Web service in .NET Core class library that I have created. So, I created a proxy class for ASMX Web service with
the help of wsdl.exe and tried to add that class in .NET Core class library. It is apparent that it is not going to work since namespaces like System.Web.Services namespace is not available. So, I dig online on this part, and I came to one point that If I
create a new .NEW Framework 4.6.x class library and add the proxy class to it and then I reference it inside my .NET Core class library, it may work.
My first doubt (for why I am here) is, what I am doing, is this feasible or this is something against the design? (I mean referencing a traditional .NET Framework 4.6.x class library dll to .NET Core class library).
My second doubt is, If this is feasible then how would I do it? When I try to add the reference, I am not able to access any of functions of referenced 4.6.x class library within .NET Core class library project. I am using Visual Studio 2015 Update 3 Community
Edition with .NET Core SDK 1.0.0, MS .NET Core 1.0.1 Tooling Preview 2 installed for 2015.
Thank you for any help!
↧
Calling ASMX web service in .NET Core class libarary
↧