I cant find information about retargeting my code from .NET 4.5 to 4.0. I have to install this application on Windows XP.
my code in .NET 4.5
public async Task <IXLWorksheet> ImportFile(string fileToImport)
{
...
return await Task.FromResult<IXLWorksheet>(Sheet1)
}
In .NET 4.0 method FromResult does not exist. Someone knows how it should looks in .NET 4.0??