Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

WCF service cannot reference a UWP class library

$
0
0

Hi,

Recently I have been trying to make a UWP version of a sample WPF Interface program written by Jeremy Clark (https://github.com/jeremybytes/learning-interfaces).

In my program, I am using "UWP Class Library" instead of ".NET Framework Class Library". While I am able to reference a WCF service from UWP class library, I am getting an error when I am trying to reference the UWP class library from the WCF service. The exact error message I am getting is "Unable to add reference to project".

Next, I replaced all UWP class library to .NET Framework class library. Now I could reference it from the WCF service. However, now I cannot reference the .NET class library from a UWP blank app.

I even tried using ".NET Standard Class Library". However, calling a service reference from it creates a very different ServiceClient class with some standard methods like GetData() missing from the class.

I would like to use UWP Class Library. Kindly suggest a way in which I could reference it from WCF service.

 


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>