To reproduce the problem follow the steps bellow:
1. Create a Portable Class Library project called 'PortableClassLibrary1'
2. Add these nuget references:
a. Microsoft Async
b. Microsoft BCL Build Components
c. Microsoft BCL Portability Pack
d. Microsoft Http Client Libraries
3. Add the code below to the Class1:
public async System.Threading.Tasks.Task Test()
{
using (var http = new System.Net.Http.HttpClient())
{
var result = http.GetAsync("http://www.test.com");
}
}
4.Create a Windows Runtime Component1 called 'WindowsRuntimeComponent1'
5. Add a solution reference to 'PortableClassLibrary1'
6. Add the code below to the Class1:
public async void Print()
{
await new PortableClassLibrary1.Class1().Test();
}